Some layout changes to get autocomplete (link widget, select users) working in dialogs too

This commit is contained in:
Nathan Gray
2013-08-20 23:08:35 +00:00
parent 17e8d00054
commit c1be84c912
3 changed files with 17 additions and 5 deletions

View File

@@ -404,11 +404,14 @@ var et2_selectbox = et2_inputWidget.extend(
header.hide();
// 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.css("width", header.css("width"));
header.css("position", "absolute");
header.css("top", options.position().top - header.outerHeight());
header.css("width", options.innerWidth() - (header.outerWidth() - header.width()) + 'px');
header.css("position", "fixed");
header.css("top", options.offset().top - header.outerHeight());
});
node.on('mouseleave focusout', function() {if(hide_header) header.hide();});
}