scopewindow layout tweak
authorGood Guy <[email protected]>
Wed, 15 Apr 2020 22:12:20 +0000 (16:12 -0600)
committerGood Guy <[email protected]>
Wed, 15 Apr 2020 22:12:20 +0000 (16:12 -0600)
cinelerra-5.1/cinelerra/scopewindow.C

index 582579a6eddfaf8e15e23ac953a9e6903152f978..9e05c15a4be6b5c827342778215f427a5d191b0a 100644 (file)
@@ -489,11 +489,10 @@ void ScopeGUI::create_objects()
        int margin = theme->widget_border;
        int x = margin;
        int y = margin;
-       add_subwindow(smooth = new ScopeSmooth(this, x, y));
-       y += smooth->get_h() + margin;
        add_subwindow(scope_menu = new ScopeMenu(this, x, y));
        scope_menu->create_objects();
-       y += scope_menu->get_h() + margin;
+       int x1 = x + scope_menu->get_w() + 2*margin;
+       add_subwindow(smooth = new ScopeSmooth(this, x1, y));
 
        create_panels();
        update_toggles();