changeset f868fa0de640 in tryton:default
details: https://hg.tryton.org/tryton?cmd=changeset;node=f868fa0de640
description:
        Set margin on main notebook widget

        It is needed to have some spaces between the pane handle and the start 
of the
        TreeView otherwise it is not possible to change the size of the first 
column if
        it was reduced to 1 pixel.

        issue9074
        review268951002
diffstat:

 tryton/gui/main.py |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 45b1602967e5 -r f868fa0de640 tryton/gui/main.py
--- a/tryton/gui/main.py        Wed Feb 19 22:54:21 2020 +0100
+++ b/tryton/gui/main.py        Sat Feb 29 01:04:40 2020 +0100
@@ -853,6 +853,7 @@
         hbox.show_all()
         label_menu = Gtk.Label(
             label=page.name, halign=Gtk.Align.START)
+        page.widget.props.margin = 3
         self.notebook.insert_page_menu(page.widget, hbox, label_menu, page_id)
         self.notebook.set_tab_reorderable(page.widget, True)
         self.notebook.set_current_page(page_id)

Reply via email to