mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 20:13:53 +01:00
Respect scrollbar spacing in sc_adjust_window
This commit is contained in:
parent
8908e1cb06
commit
ad27b0471d
@ -82,6 +82,11 @@ sc_adjust_window(girara_session_t* session, girara_argument_t* argument,
|
||||
double width = allocation.width;
|
||||
double height = allocation.height;
|
||||
|
||||
/* scrollbar spacing */
|
||||
gint spacing;
|
||||
gtk_widget_style_get(session->gtk.view, "scrollbar_spacing", &spacing, NULL);
|
||||
width -= spacing;
|
||||
|
||||
/* correct view size */
|
||||
if (gtk_widget_get_visible(GTK_WIDGET(session->gtk.inputbar)) == true) {
|
||||
gtk_widget_get_allocation(session->gtk.inputbar, &allocation);
|
||||
|
Loading…
Reference in New Issue
Block a user