mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-24 21:13:54 -04:00
Merge pull request #3727 from tgxworld/fix_autocomplete_mobile_view
UX: Make autocomplete usable on mobile.
This commit is contained in:
commit
e43343354a
1 changed files with 7 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue