mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 11:04:59 +08:00
UX: Make autocomplete usable on mobile.
This commit is contained in:
parent
a0dd0bf1af
commit
a77d5d0cef
|
@ -220,6 +220,13 @@ export default function(options) {
|
|||
vOffset = div.height();
|
||||
}
|
||||
|
||||
if (Discourse.Mobile.mobileView && !isInput) {
|
||||
div.css('width', 'auto');
|
||||
|
||||
if ((me.height() / 2) >= pos.top) { vOffset = -23; }
|
||||
if ((me.width() / 2) <= pos.left) { hOffset = -div.width(); }
|
||||
}
|
||||
|
||||
var mePos = me.position();
|
||||
var borderTop = parseInt(me.css('border-top-width'), 10) || 0;
|
||||
div.css({
|
||||
|
|
Loading…
Reference in New Issue
Block a user