mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +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
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);
|
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')) {
|
||||||
|
var inputPadding = ms.input.outerWidth(true) - ms.input.width();
|
||||||
ms.input.width(0);
|
ms.input.width(0);
|
||||||
inputOffset = ms.input.offset().left - ms.selectionContainer.offset().left;
|
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);
|
ms.input.width(w);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(_selection.length === cfg.maxSelection){
|
if(_selection.length === cfg.maxSelection){
|
||||||
|
Loading…
Reference in New Issue
Block a user