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:
Hadi Nategh 2016-06-24 13:12:38 +02:00
parent 67ffe04524
commit 009afc76e1

View File

@ -1082,7 +1082,7 @@
});
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();
ms.input.width(0);
inputOffset = Math.max(0,ms.input.offset().left - ms.selectionContainer.offset().left);