Fixed flashing

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

No files matched your search

+1 -1
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()));