mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-10 07:21:04 +01:00
Some layout changes to get autocomplete (link widget, select users) working in dialogs too
This commit is contained in:
parent
17e8d00054
commit
c1be84c912
@ -187,7 +187,9 @@ var et2_selectAccount = et2_selectbox.extend(
|
|||||||
|
|
||||||
// Put search results as a DOM sibling of the options, for proper display
|
// Put search results as a DOM sibling of the options, for proper display
|
||||||
this.search_widget.search.on("autocompleteopen", jQuery.proxy(function() {
|
this.search_widget.search.on("autocompleteopen", jQuery.proxy(function() {
|
||||||
this.search_widget.search.data("ui-autocomplete").menu.element.appendTo(this.node);
|
this.search_widget.search.data("ui-autocomplete").menu.element
|
||||||
|
.appendTo(this.node)
|
||||||
|
.position({my: 'left top', at: 'left bottom', of: this.multiOptions.prev()})
|
||||||
},this));
|
},this));
|
||||||
this.search = jQuery(document.createElement("li"))
|
this.search = jQuery(document.createElement("li"))
|
||||||
.appendTo(this.multiOptions.prev().find('ul'));
|
.appendTo(this.multiOptions.prev().find('ul'));
|
||||||
|
@ -404,11 +404,14 @@ var et2_selectbox = et2_inputWidget.extend(
|
|||||||
header.hide();
|
header.hide();
|
||||||
|
|
||||||
// Show / hide again
|
// Show / hide again
|
||||||
node.on('mouseenter focusin', function() {
|
node.on('mouseenter focusin', function(e) {
|
||||||
|
// Don't show if dragging goes over
|
||||||
|
if(e.which != 0) return;
|
||||||
|
|
||||||
header.show();
|
header.show();
|
||||||
header.css("width", header.css("width"));
|
header.css("width", options.innerWidth() - (header.outerWidth() - header.width()) + 'px');
|
||||||
header.css("position", "absolute");
|
header.css("position", "fixed");
|
||||||
header.css("top", options.position().top - header.outerHeight());
|
header.css("top", options.offset().top - header.outerHeight());
|
||||||
});
|
});
|
||||||
node.on('mouseleave focusout', function() {if(hide_header) header.hide();});
|
node.on('mouseleave focusout', function() {if(hide_header) header.hide();});
|
||||||
}
|
}
|
||||||
|
@ -471,6 +471,13 @@ action buttons, left aligned for "extra" controls
|
|||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Autocomplete in dialogs - fix so they go over/out of the dialog
|
||||||
|
*/
|
||||||
|
.ui-dialog * ul.ui-autocomplete {
|
||||||
|
position: fixed;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Link wiget(s)
|
* Link wiget(s)
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user