언어 설정

Menu
Sites
Language
Jumping popup

What is the way to prevent popup jumping/hiding when it is opened during the focus was in editable field (input, etc.) and virtual keyboard was opened

Edited by: Maksym on 07 10월, 2013

Responses

8 댓글
konduri sai swathi

Hi,

Do you want to prevent the virtual keyboard from poping up when focus is in input ?. 

Kindly re-post your question with more clarity. 

Maksym

I want to see popup opened. Instead I see that it is opened and siappears together with keyboard

Maksym

btw, did you try to open popup when you are in input field? What is the behaviour?

Eugene B

Hi,

try to use timeout to open the popup. 200ms should be enough to prevent jumping.

Maksym

Timeout isn't a good solution, beacuse 200 ms can be not enougth (system is too busy, etc.) or too long otherwise. If there is event which I can hanle and hich notifies that keyboard is closed I can agree to use such event.

Moreover it is possible to open popup not from javascript directly, but from HTML markup

<a href="#popupBasic" data-rel="popup">Open Popup</a>

What about such case?

Eugene B

Maksim, when keyboard is open - the viewport size is reduced. You should give a time for keyboard hiding and the viewport size restoring. Here is only one way - opening the popup using timeout.

 

Eugene B

Ok. Let's clarify - how you open the popup?

Maksym

$(selector).popup('open')