Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Portrait mode -> landscape mode bug #1

Closed
PyThrrrone opened this issue Dec 22, 2021 · 1 comment
Closed

Portrait mode -> landscape mode bug #1

PyThrrrone opened this issue Dec 22, 2021 · 1 comment

Comments

@PyThrrrone
Copy link
Owner

  1. Start the script in portrait mode.
  2. Turn the IPad to landscape mode.
  3. Result: The used canvas is no longer the complete display. Only 2/3 of it.

Anyone with an idea, how to solve that?
FAA9374F-415F-41F5-9676-210E380CF62B

@pome-ta
Copy link

pome-ta commented Dec 23, 2021

pome-ta@1d7709e

def did_change_size(self):
      self.sprite.size = ui.get_screen_size()
      self.sprite.position = self.size/2

Does this process solve your wishes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants