gamejolt / issue-tracker

Issue tracker for Game Jolt
27 stars 6 forks source link

HTML5 Game IFrame makes scroolbars to appear, adding "vertical-align: top" solves it #1152

Open hufous opened 6 years ago

hufous commented 6 years ago

Hello, I've noticed that the game IFrame is using the default vertical-align which align it above the text baseline making the scrollbars appear, adding a simple "vertical-align: top" will solve it 😃

I've checked the index.html directly and it's not an issue on the games.

Proof: 2018-06-16_07-15-48 https://gamejolt.com/games/flagfield/346639 http://flag.mulplay.me

hufous commented 6 years ago

Hello, I published another game, and I also saw that in other games the same issue happens, the scroll bar is quite annoying, and cause gives the impression that is an issue on the games, but it's impossible to correct this from a game script because iframe security does not allow access the top page, which is where the scrollbars is. Adding just a "vertical-align: top" in CSS solves the problem.

hufous commented 6 years ago

It also happens on Firefox and Edge