exclude: fix list width if no polygons are provided

This commit is contained in:
alfrix 2022-11-15 23:47:09 -03:00
parent fdf13102fe
commit c5fe8b02a4

View File

@ -56,6 +56,7 @@ class ExcludeObjectPanel(ScreenPanel):
scroll.set_size_request((self._screen.width * .9) // 2, -1)
else:
grid.attach(scroll, 0, 2, 2, 1)
scroll.set_size_request(self._gtk.get_content_width(), -1)
self.content.add(grid)
self.content.show_all()