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

Positioning of a layout on a different sized screen with rotation... #490

zpaolo11x opened this Issue Oct 4, 2018 · 1 comment


None yet
1 participant

zpaolo11x commented Oct 4, 2018

I think there's a bug, at least on OSX, in the way AM adapts a layout with a different aspect ratio with respect to the screen. Say you have a 16:10 screen with a 2:4 layout displayed over it in "preserve aspect ratio" mode. If you toggle rotation, the layout is partially cut off the screen and not centered.

Sample code:

fe.layout.base_rotation = 1
fe.layout.width = 200
fe.layout.height = 400
fe.layout.preserve_aspect_ratio = true
local pippo = fe.add_text("",0,0,fe.layout.width,fe.layout.height)
local pappo = fe.add_text("A",1,1,fe.layout.width-2,fe.layout.height-2)

See the attached images for the theme with base rotation = 0 and base rotation = 1


This comment has been minimized.

Show comment
Hide comment

zpaolo11x Oct 8, 2018

Confirmed the same issue on Windows, not only on Mac OS

zpaolo11x commented Oct 8, 2018

Confirmed the same issue on Windows, not only on Mac OS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment