Skip to content

GUI camera match_window not working #2540

Closed
@cdeil

Description

@cdeil

I think this camera_gui.match_window() isn't properly working at the moment?

def on_resize(self, width: int, height: int):
"""
Resize window
Handle the user grabbing the edge and resizing the window.
"""
super().on_resize(width, height)
self.camera_sprites.match_window()
self.camera_gui.match_window()

If I resize the window I get this - the GUI elements aren't placed correctly any more:

Image

This is with latest dev version ( 333ce6e )

Arcade 3.0.0.rc3
----------------
vendor: Apple
renderer: Apple M3
version: (4, 1)
python: 3.13.1 (main, Dec  3 2024, 17:59:52) [Clang 16.0.0 (clang-1600.0.26.4)]
platform: darwin
pyglet version: 2.1.2
PIL version: 11.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions