Adapt histogram height to font size.

This commit is contained in:
Bartosz Taudul 2018-06-29 00:44:05 +02:00
parent f82e8aa98f
commit 2866cafda5

View File

@ -3838,7 +3838,7 @@ void View::DrawFindZone()
ImGui::Text( "Zone group time: none" );
}
enum { Height = 200 };
const auto Height = 200 * ImGui::GetTextLineHeight() / 15.f;
const auto wpos = ImGui::GetCursorScreenPos();
ImGui::InvisibleButton( "##histogram", ImVec2( w, Height + round( ty * 1.5 ) ) );
@ -4604,7 +4604,7 @@ void View::DrawCompare()
ImGui::SameLine();
ImGui::Text( "Overlap" );
enum { Height = 200 };
const auto Height = 200 * ImGui::GetTextLineHeight() / 15.f;
const auto wpos = ImGui::GetCursorScreenPos();
ImGui::InvisibleButton( "##histogram", ImVec2( w, Height + round( ty * 1.5 ) ) );