Fix position of scrollbars

merge-requests/64/head
Huluti 2017-02-04 11:15:59 +01:00
parent 6e7b4c506f
commit f6ddb0cd9a
2 changed files with 5 additions and 4 deletions

View File

@ -67,6 +67,7 @@ class ManjaroHello():
for page in self.pages: for page in self.pages:
scrolled_window = Gtk.ScrolledWindow() scrolled_window = Gtk.ScrolledWindow()
viewport = Gtk.Viewport() viewport = Gtk.Viewport()
viewport.set_border_width(10)
label = Gtk.Label(wrap=True) label = Gtk.Label(wrap=True)
viewport.add(label) viewport.add(label)
scrolled_window.add(viewport) scrolled_window.add(viewport)

View File

@ -22,16 +22,16 @@
<object class="GtkStack" id="stack"> <object class="GtkStack" id="stack">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="margin_left">10</property>
<property name="margin_right">10</property>
<property name="margin_top">10</property>
<property name="margin_bottom">10</property>
<property name="hexpand">True</property> <property name="hexpand">True</property>
<property name="transition_type">crossfade</property> <property name="transition_type">crossfade</property>
<child> <child>
<object class="GtkGrid"> <object class="GtkGrid">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="margin_left">10</property>
<property name="margin_right">10</property>
<property name="margin_top">10</property>
<property name="margin_bottom">10</property>
<property name="row_spacing">20</property> <property name="row_spacing">20</property>
<property name="column_spacing">10</property> <property name="column_spacing">10</property>
<property name="column_homogeneous">True</property> <property name="column_homogeneous">True</property>