1
0

Size the wizard instantly, do not wait.

Fixes a UI issue in kivy Install Wizzard.
The Choices UI was displayed in a small vertical line for a split second, before being resized to correct size.
This fixes that by ensuring resizing is done before next frame is displayed https://kivy.org/doc/stable/api-kivy.clock.html#schedule-before-frame .
This commit is contained in:
Akshay Arora
2020-07-15 22:57:24 +05:30
committed by GitHub
parent bf2c99ad89
commit 2b394f5f93

View File

@@ -590,7 +590,7 @@ class WizardDialog(EventsDialog):
self.app = App.get_running_app()
self.run_next = kwargs['run_next']
self._trigger_size_dialog = Clock.create_trigger(self._size_dialog)
self._trigger_size_dialog = Clock.create_trigger(self._size_dialog, -1)
# note: everything bound here needs to be unbound as otherwise the
# objects will be kept around and keep receiving the callbacks
Window.bind(size=self._trigger_size_dialog,