splash_screen: tweak layout sizes and remove get_allocation that can cause isssues

fixes #813

gtk: fix content_width while vertical returning 0
This commit is contained in:
alfrix
2022-11-26 10:29:55 -03:00
parent abb1f0d2d2
commit 20346a90dc
4 changed files with 9 additions and 8 deletions

View File

@@ -47,7 +47,7 @@ class ExcludeObjectPanel(ScreenPanel):
if self._screen.vertical_mode:
grid.attach(self.labels['map'], 0, 2, 2, 1)
grid.attach(scroll, 0, 3, 2, 1)
scroll.set_size_request(self._screen.width, -1)
scroll.set_size_request(self._gtk.get_content_width(), -1)
else:
grid.attach(self.labels['map'], 0, 2, 1, 1)
grid.attach(scroll, 1, 2, 1, 1)