mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
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
3
api/js/jquery/magicsuggest/magicsuggest.js
vendored
3
api/js/jquery/magicsuggest/magicsuggest.js
vendored
@ -1083,9 +1083,10 @@
|
||||
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;
|
||||
w = ms.container.width() - inputOffset - (cfg.hideTrigger ? inputPadding : 42);
|
||||
ms.input.width(w);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user