cjpearson / cordova-plugin-keyboard

Keyboard Plugin for Cordova
177 stars 345 forks source link

Shrink view shrinks web view without animation #13

Open ChristophLabacher opened 8 years ago

ChristophLabacher commented 8 years ago

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.

anri-asaturov commented 8 years ago

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

cjpearson commented 8 years ago

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.