(Sorry for the resend, I forgot to reply-all first time)

The scaling is more a function of the display pixel density than
anything else. For example if you compare devices (2) and (4) in your
list, they have the same physical dimensions, but one has a much
higher resolution than the other. We try to scale things so that they
are roughly the same size in physical inches across different devices,
but the scaling is not perfectly granular and I believe that is what
results in the artifacts you are seeing. The code for it is at
https://dxr.mozilla.org/mozilla-central/rev/19d89caa664dd9309c796929225ee409df5d1ee4/widget/gonk/nsWindow.cpp#744

kats

On Tue, Nov 24, 2015 at 10:01 AM, Adam Farden <[email protected]> wrote:
> Take a look at this image:
> https://bug1227544.bmoattachments.org/attachment.cgi?id=8691387
>
> Here we have five devices of different screen size and resolutions.
>
> 1. 4.5 inch (56x99 mm) 854x480 px
> 2. 5.2 inch (65x116 mm) 1280x720 px
> 3. 6.0 inch (75x134 mm) 1280x720 px
> 4. 5.2 inch (64x114 mm) 1920x1080 px
> 5. 5.5 inch (68x121 mm) 2560x1440 px
>
> The device scaling ultimately depends on setting the right physical
> dimensions in the kernel, or you end up with a comically small UI. All of
> these devices have the correct configuration.
>
> However if you look at device 2 and 3 the scaling is vastly smaller compared
> to the others. If you're not sure, just look at the location of NFC. on
> device 4 and 5 it is the last visible entry, but on 2 and 3 it is somewhere
> in the middle! (On device 1 it is off the screen.)
>
> This is only affecting my 1280x720 px devices, all other devices are scaling
> correctly.
>
> Can someone please point me to the code which controls scaling?
>
> Adam
>
> _______________________________________________
> dev-fxos mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-fxos
>
_______________________________________________
dev-fxos mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-fxos

Reply via email to