Fixed flashing

+ Adde experiments with FromDIP function
This commit is contained in:
YuSanka 2019-02-05 11:48:28 +01:00
parent 1b5c118fd0
commit 7cc3a95f53
5 changed files with 5 additions and 5 deletions

View file

@ -159,7 +159,7 @@ bool GUI_App::OnInit()
// ! Temporary workaround for the correct behavior of the Scrolled sidebar panel
// Do this "manipulations" only once ( after (re)create of the application )
if (plater_ && sidebar().obj_list()->GetMinHeight() > 200)
if (plater_ && sidebar().obj_list()->GetMinHeight() > 15 * wxGetApp().em_unit())
{
wxWindowUpdateLocker noUpdates_sidebar(&sidebar());
sidebar().obj_list()->SetMinSize(wxSize(-1, 15 * wxGetApp().em_unit()));