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 :sob: :iphone: )
(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 than610
inCommunityBasic.js
(It is happen with a game for smartphones :sob: :iphone: )Video: https://youtu.be/urLdUwQpIOM
I tried the following two changes! :laughing:
(1) I added a process to recalculate the width to
Graphics._updateProgress
. (likeGraphics._updateErrorPrinter
)(2) I added
border-box
style toGraphics._barElement
.Graphics._barElement
has a width of 100% and has a 5px border. Therefore, the element width was 610 px (100% + 5 px * 2
)