06-14-2023, 01:44 PM
(06-14-2023, 11:54 AM)Nutul Wrote:(06-14-2023, 11:41 AM)TheOldPresbyope Wrote: That's not what I get on my "official" 7-in Touch.
Odd to see an "off by one" error here.
Regards,
Kent
I'm using "square" pixel mode, don't know if that makes any difference... maybe I'll try in both modes later today.
Anyway, I am more keen to understand a 800 pixels wide viewport (min x = 0, max x = 799), rather than a 799-wide one...
Maybe something changed in the browser? older versions returned maxX / maxY instead? I cannot comment, as this is the very first time I use the "show viewport" thing.
Quick test with a Pi 7" Touch and the viewport popup shows the following:
Pixel aspect ratio
- Default 799 x 479
- Square 799 x 443
AFAIK viewport is 0-based so an 800px wide screen with pixel ratio = 1 and no Browser zoom would have a viewport max width of 799px.
I'm not sure what could be causing viewport width to show 800px on your end.