Update jquery.ime from upstream

Bug: 49679
Change-Id: I1bc5a4ac2788d20d2bdba6454bd278a3b4681168
This commit is contained in:
Amir E. Aharoni
2013-06-26 10:41:47 +03:00
committed by Nikerabbit
parent 2d985d8b0e
commit 244b20d2b5
3 changed files with 12 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
/*! jquery.ime - v0.1.0+20130625
/*! jquery.ime - v0.1.0+20130626
* https://github.com/wikimedia/jquery.ime
* Copyright (c) 2013 Santhosh Thottingal; Licensed GPL, MIT */
( function ( $ ) {
@@ -704,7 +704,7 @@
*/
position: function () {
var imeSelector = this,
position, top, left, room;
menutop, position, top, left, room;
this.focus(); // shows the trigger in case it is hidden
@@ -726,13 +726,15 @@
if ( room < this.$imeSetting.outerHeight() ) {
top = position.top - this.$imeSetting.outerHeight();
menutop = this.$menu.outerHeight() +
this.$imeSetting.outerHeight();
this.$menu
.addClass( 'position-top' )
.css( 'top',
- ( this.$menu.outerHeight() +
this.$imeSetting.outerHeight() )
);
// Flip the menu to the top only if it can fit in the space there
if ( menutop < top ) {
this.$menu
.addClass( 'position-top' )
.css( 'top', -menutop );
}
}
this.$element.parents().each( function() {