forked from extern/egroupware
Try to make the input box fill the line better when we hide the trigger button
This commit is contained in:
parent
467421a0c7
commit
95e1cd00ff
7
api/js/jquery/magicsuggest/magicsuggest.js
vendored
7
api/js/jquery/magicsuggest/magicsuggest.js
vendored
@ -1083,10 +1083,11 @@
|
||||
ms._valueContainer.appendTo(ms.selectionContainer);
|
||||
|
||||
if(cfg.selectionPosition === 'inner' && !cfg.selectionContainer && ms.container.is(':visible')) {
|
||||
var inputPadding = ms.input.outerWidth(true) - ms.input.width();
|
||||
ms.input.width(0);
|
||||
inputOffset = ms.input.offset().left - ms.selectionContainer.offset().left;
|
||||
w = ms.container.width() - inputOffset - 42;
|
||||
ms.input.width(w);
|
||||
inputOffset = ms.input.offset().left - ms.selectionContainer.offset().left;
|
||||
w = ms.container.width() - inputOffset - (cfg.hideTrigger ? inputPadding : 42);
|
||||
ms.input.width(w);
|
||||
}
|
||||
|
||||
if(_selection.length === cfg.maxSelection){
|
||||
|
Loading…
Reference in New Issue
Block a user