shell: subtract a hacky constant from the screen height for dialog height
Since the window also has a titlebar and toolbar. Should probably try to get the size of those somehow.
This commit is contained in:
parent
e673c682f4
commit
93f6035425
1 changed files with 1 additions and 1 deletions
|
@ -913,7 +913,7 @@ on_window_size_allocate (GtkWidget *widget,
|
|||
screen = gtk_widget_get_screen (widget);
|
||||
monitor = gdk_screen_get_monitor_at_window (screen, window);
|
||||
gdk_screen_get_monitor_geometry (screen, monitor, &rect);
|
||||
height = MIN (height + 10, rect.height);
|
||||
height = MIN (height + 10, rect.height - 120);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue