mirror of
https://github.com/discourse/discourse.git
synced 2025-03-04 01:45:23 +08:00
fix positioning regression
This commit is contained in:
parent
80c03b7b1e
commit
30df1b1815
@ -146,13 +146,18 @@ $.fn.autocomplete = function(options) {
|
|||||||
pos: completeStart,
|
pos: completeStart,
|
||||||
key: options.key
|
key: options.key
|
||||||
});
|
});
|
||||||
vOffset = div.height();
|
|
||||||
hOffset = 27;
|
hOffset = 27;
|
||||||
}
|
}
|
||||||
div.css({
|
div.css({
|
||||||
left: "-1000px"
|
left: "-1000px"
|
||||||
});
|
});
|
||||||
|
|
||||||
me.parent().append(div);
|
me.parent().append(div);
|
||||||
|
|
||||||
|
if(!isInput){
|
||||||
|
vOffset = div.height();
|
||||||
|
}
|
||||||
|
|
||||||
var mePos = me.position();
|
var mePos = me.position();
|
||||||
var borderTop = parseInt(me.css('border-top-width'), 10) || 0;
|
var borderTop = parseInt(me.css('border-top-width'), 10) || 0;
|
||||||
div.css({
|
div.css({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user