forked from extern/egroupware
Fix input field in taglist jumps into second line if there's a value set and it's display:none
This commit is contained in:
parent
67ffe04524
commit
009afc76e1
2
api/js/jquery/magicsuggest/magicsuggest.js
vendored
2
api/js/jquery/magicsuggest/magicsuggest.js
vendored
@ -1082,7 +1082,7 @@
|
|||||||
});
|
});
|
||||||
ms._valueContainer.appendTo(ms.selectionContainer);
|
ms._valueContainer.appendTo(ms.selectionContainer);
|
||||||
|
|
||||||
if(cfg.selectionPosition === 'inner' && !cfg.selectionContainer && ms.container.is(':visible')) {
|
if(cfg.selectionPosition === 'inner' && !cfg.selectionContainer && (ms.container.is(':visible')||ms.getValue().length>0)) {
|
||||||
var inputPadding = ms.input.outerWidth(true) - ms.input.width();
|
var inputPadding = ms.input.outerWidth(true) - ms.input.width();
|
||||||
ms.input.width(0);
|
ms.input.width(0);
|
||||||
inputOffset = Math.max(0,ms.input.offset().left - ms.selectionContainer.offset().left);
|
inputOffset = Math.max(0,ms.input.offset().left - ms.selectionContainer.offset().left);
|
||||||
|
Loading…
Reference in New Issue
Block a user