viewporter icon indicating copy to clipboard operation
viewporter copied to clipboard

Profiles: Different height with visible/hidden location bar

Open PJhimself opened this issue 12 years ago • 1 comments

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.

PJhimself avatar Mar 28 '12 10:03 PJhimself

@pbakaus can you have a look at this?

swernerx avatar May 21 '12 12:05 swernerx