Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I've tried using it in this fiddle and it works <a href="http://jsfiddle.net/TUAHC/" rel="nofollow">http://jsfiddle.net/TUAHC/</a>. The key difference is that I used the latest version of jQuery, 1.8.2 instead of version 1.4.4 that was used in the demo you posted. Upgrading the jQuery version seems to fix the issue.</p> <p><strong>EDIT</strong></p> <p>It seems that there's an issue with the jQuery UI Position utility used in the plugin which is called on each time the text input is focused, and it seems to only manifest itself when there's padding/margin on the parent element. A way of fixing it would be to modify the plugin and move the positioning code of the plugin outside the focus event handler. So find this code (around line 141 of the plugin js file):</p> <pre><code>element.focus(function() { var element = jQuery(this) jQuery('.ui-keyboard').hide(); previewInput.val(element.val()); keyboard.position({ of: element, my: "left top", at: "left top", collision: "fit", }).show(); previewInput.scrollTop(previewInput.attr('scrollHeight')).focus(); }); </code></pre> <p>And change the code to this:</p> <pre><code>keyboard.position({ of: element, my: "left top", at: "left top", collision: "fit", }); element.focus(function() { var element = jQuery(this) jQuery('.ui-keyboard').hide(); previewInput.val(element.val()); keyboard.show(); previewInput.scrollTop(previewInput.attr('scrollHeight')).focus(); }); </code></pre> <p>That seems to do the trick in my tests <a href="http://jsfiddle.net/TUAHC/2/" rel="nofollow">http://jsfiddle.net/TUAHC/2/</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload