changeset 6050e000f785 in tryton:5.4
details: https://hg.tryton.org/tryton?cmd=changeset;node=6050e000f785
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 939f3ddefead -r 6050e000f785 tryton/gui/window/wizard.py
--- a/tryton/gui/window/wizard.py Thu Jul 16 19:08:12 2020 +0200
+++ b/tryton/gui/window/wizard.py Mon Aug 10 23:21:03 2020 +0200
@@ -353,6 +353,11 @@
current_view.scroll.set_policy(
Gtk.PolicyType.NEVER, Gtk.PolicyType.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)