GUI: 3.0 cleanup by eruvanos · Pull Request #2371 · pythonarcade/arcade · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 0 additions & 60 deletions arcade/examples/gui/dropdown.py

This file was deleted.

8 changes: 4 additions & 4 deletions arcade/examples/gui/exp_scroll_area.py
79 changes: 0 additions & 79 deletions arcade/examples/gui/grid_layout.py

This file was deleted.

64 changes: 0 additions & 64 deletions arcade/examples/gui/side_bars_with_box_layout.py

This file was deleted.

5 changes: 4 additions & 1 deletion arcade/gui/experimental/scroll_area.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,13 @@ def do_layout(self):
if new_rect != child.rect:
child.rect = new_rect

total_min_x = round(total_min_x)
total_min_y = round(total_min_y)

# resize surface to fit all children
if self.surface.size != (total_min_x, total_min_y):
self.surface.resize(
size=(round(total_min_x), round(total_min_y)), pixel_ratio=self.surface.pixel_ratio
size=(total_min_x, total_min_y), pixel_ratio=self.surface.pixel_ratio
)
self.scroll_x = 0
self.scroll_y = 0
Expand Down
6 changes: 6 additions & 0 deletions doc/programming_guide/gui/concepts.rst