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

Interactive error when resize canvas #55

Open
tunglt1810 opened this issue Jun 14, 2016 · 2 comments
Open

Interactive error when resize canvas #55

tunglt1810 opened this issue Jun 14, 2016 · 2 comments

Comments

@tunglt1810
Copy link

Hi, i am using pixi and EZGUI to create an online game. And i have some problems with components in a List component or Slider components when i resize canvas fit to browser size. When in small size, i can't drag the slider, and can't click exactly to another button in the list beside the first one.
I using this codes for resize canvas
untitled
You can check this issus in my page : http://t5.tofu.vn
Thank for your help and sorry for my bad english

@alaa-eddine
Copy link
Contributor

Hi,
I'm afraid the only way to keep controls consistency after screen resize is to rebuild them (using rebuild()) method, in your case you have to rebuild the whole screen.

in your case, you should call .rebuild() in your main EZGUI control so it redraw the whole scene after resize.
you'll maybe need to keep an interval of time between resize to prevent unnesseccary redraws dyring the resize operation.

@tunglt1810
Copy link
Author

Thank you very much, i will try and feedback.

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