viewporter
viewporter copied to clipboard
Profiles: Different height with visible/hidden location bar
The height of a device's display is different, if the location bar is displayed or hidden. Sometimes, it will take a lot of time until the location bar will be hidden or that might never happen automatically. The current implementation allows only one value for each orientation and needs an exact match for it.
Therefore, the check will not work, until the location bar is shown or hidden, depending on when the values of the related profile have been read.
Additionally, it is possible to have different browsers on a mobile device and the height of the location bar might be different than the height of the default browser - or its height has changed. Under these conditions the check will not work anymore.
A solution might be, to use the value without location bar (the device's maximum height) and check, if the current value is lower or equal than that value.
@pbakaus can you have a look at this?