Skip to content

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