cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rémi Couturier (JIRA) <>
Subject [jira] [Commented] (CB-5809) StatusBar plugin causes viewport drift
Date Tue, 31 Mar 2015 16:19:53 GMT


Rémi Couturier commented on CB-5809:

I'm currently working on a project where this exact problem arise.
Tested on iOS 8.2 (iPad Retina, iPhone 4s).
My guess is that the viewport is being affected when the statusbar visbility is toggled, and
somehow the absolute positioned element doesn't get the right infos to re-calculate his position
As a workaround, I tried to remove/re-add the absolute positionning on the element, waiting
a few seconds (via a setTimeout) after the statusbar visibility changed, but no luck.
I also tried to do the same thing via the "resize" event, same result.

> StatusBar plugin causes viewport drift
> --------------------------------------
>                 Key: CB-5809
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Statusbar
>         Environment: iOS 7.0
>            Reporter: sandstrom
>              Labels: statusbar-plugin
> When using the Statusbar Plugin (which is awesome btw) to hide/show the statusbar, it
seems like the viewport and/or document is affected such that anything attached to the bottom
(via `position:absolute;`) drifts downwards, until it's unreachable.
> To reproduce:
> 1. Attach some div to the bottom via absolute positioning
> 2. write `StatusBar.hide();;` 5 times in the console
> 3. Watch the div drift downwards.
> The plugin in question (0.1.3):
> Possibly relevant configuration etc:
> <preference name="HideKeyboardFormAccessoryBar" value="true" />
> <preference name="KeyboardShrinksView" value="true"/>
> <preference name="DisallowOverscroll" value="true" />
> <meta name="viewport" content="initial-scale=1, maximum-scale=1, minimum-scale=1,
user-scalable=no, target-densitydpi=device-dpi">
> Possibly related issues (probably not the same bug though):

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message