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

Fix progress bar width for small width games #205

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rutan
Copy link
Contributor

@rutan rutan commented May 19, 2019

Fixed an issue where the progress bar was larger than the game screen,
if I set the screenWidth value to less than 610 in CommunityBasic.js
(It is happen with a game for smartphones 😭 📱 )

Video:
https://youtu.be/urLdUwQpIOM


I tried the following two changes! 😆

(1)
I added a process to recalculate the width to Graphics._updateProgress.
(like Graphics._updateErrorPrinter)

(2)
I added border-box style to Graphics._barElement.
Graphics._barElement has a width of 100% and has a 5px border.
Therefore, the element width was 610 px ( 100% + 5 px * 2 )

Fixed an issue where the progress bar was larger than the game screen,
if I set the `screenWidth` value to less than 610 in `CommunityBasic.js`
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

Successfully merging this pull request may close these issues.

1 participant