cordova-plugin-keyboard icon indicating copy to clipboard operation
cordova-plugin-keyboard copied to clipboard

Shrink view shrinks web view without animation

Open christophlocher opened this issue 10 years ago • 2 comments

When I use Keyboard.shrinkView(true); it generally works fine, the only trouble I have is that while the keyboards gets animated in (which takes approximately .3s) the web view (and all elements I placed on the bottom of it) jumps to the new size immediately.

Is there anyway of making the size change with a transition so it doesn't look as bad?

I tired putting transition: height .3s on <html> and <body> but it didn't help.

I am not sure whether this is the regular behavior or whether I am doing something wrong.

christophlocher avatar Dec 07 '15 20:12 christophlocher

Do you have a position:absolute or fixed on your body?

anri-asaturov avatar Dec 07 '15 20:12 anri-asaturov

I previously added an animation that matched the keyboard's animation, but removed it in this commit. Even though the webview was shrinking correctly, the actual web content shrunk all it once. I posted about it on stack overflow, but so far none of the answers have worked.

cjpearson avatar Dec 07 '15 22:12 cjpearson