-
Notifications
You must be signed in to change notification settings - Fork 3
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
Change display aspect ratio #8
Comments
Thanks 😊 The screen layout was designed for aspect ratio 19:9 (e.g. resolution of 2280 x 1080 pixels). The only way to fit nicely into a 5:3 aspect ratio is to re-design the screeens. You could tweak |
I've tried different values in the scale with no success, it seems that the scale calculation is based on the design of the aspect ratio of the screen, and when the scale is changed, the aspect ratio does not change. another problem is with background image , i used sketch data uploader to upload data folder without errors but its not work and file background.jpg doesnt exist to show |
Indeed, the screen layout is designed on aspect ratio 19:9, not 5:3. To scale without preserving the aspect ratio, you could use the CSS "transform" property. For example like this to stretch the Y-axis appropriately:
To have your own background image, indeed you need to put a 'background.jpg' file in the
Please follow the detailed instructions as written above that line in the |
scale function worked but it start from center of screen not top-left (0,0) and cause screen to go out from top , so i added translateY (for moving screen in y axis) and scale together and works fine |
Nice 😃 Thanks for the update! |
hi
first thanks for this project its very attractive
i have peugeot 206 1.6 16v petrol and installed 6.2inch android HU with 800x480 pixels resolution
when web page loaded in fullscreen , bottom of screen goes blank
is any way to change and fix this?
The text was updated successfully, but these errors were encountered: