Put memory allocations list into a child area.

This commit is contained in:
Bartosz Taudul 2018-04-02 14:44:45 +02:00
parent 8cc446b578
commit aa8980aacc

View File

@ -3653,6 +3653,7 @@ void View::DrawStatistics()
template<class T> template<class T>
void View::ListMemData( T ptr, T end, std::function<MemEvent*(T&)> DrawAddress ) void View::ListMemData( T ptr, T end, std::function<MemEvent*(T&)> DrawAddress )
{ {
ImGui::BeginChild( "##memScroll", ImVec2( 0, std::max( 200.f, ImGui::GetContentRegionAvail().y ) ) );
ImGui::Columns( 7 ); ImGui::Columns( 7 );
ImGui::Text( "Address" ); ImGui::Text( "Address" );
ImGui::NextColumn(); ImGui::NextColumn();
@ -3797,6 +3798,7 @@ void View::ListMemData( T ptr, T end, std::function<MemEvent*(T&)> DrawAddress )
ptr++; ptr++;
} }
ImGui::EndColumns(); ImGui::EndColumns();
ImGui::EndChild();
} }
void View::DrawMemory() void View::DrawMemory()