changeset 995a47c5533c in tryton:5.0
details: https://hg.tryton.org/tryton?cmd=changeset;node=995a47c5533c
description:
        Restore automatic scrolling on wizard dialog

        The scrolls are disable to compute the best size but if the result is 
too big,
        we must allow user to scroll.

        issue9494
        review294221002
        (grafted from f293d41e2a3686aaaee3c704533eeace78774974)
diffstat:

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

diffs (15 lines):

diff -r b22e00e7d213 -r 995a47c5533c tryton/gui/window/wizard.py
--- a/tryton/gui/window/wizard.py       Thu Jul 16 19:10:09 2020 +0200
+++ b/tryton/gui/window/wizard.py       Mon Aug 10 23:21:03 2020 +0200
@@ -364,6 +364,11 @@
             current_view.scroll.set_policy(
                 gtk.POLICY_NEVER, gtk.POLICY_NEVER)
         self.show()
+        self.scrolledwindow.set_policy(
+            Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC)
+        if current_view.scroll:
+            current_view.scroll.set_policy(
+                Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC)
 
     def destroy(self, action=None):
         super(WizardDialog, self).destroy(action=action)

Reply via email to