mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-09 10:25:08 +00:00
Monotone-Parent: 96be8fb544ada3cb6a58b0caa0bfb99522dac8db
Monotone-Revision: bded46ecbec55dcfe4c434982eb0a1d07a5ce436 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2008-07-09T02:01:32 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -143,9 +143,13 @@ function performSearchCallback(http) {
|
||||
var offset = Element.cumulativeOffset(attendeesEditor.currentField);
|
||||
var top = offset[1] - offsetScroll[1] + node.offsetHeight + 3;
|
||||
var height = 'auto';
|
||||
if (data.length > 5) {
|
||||
height = 5 * node.getHeight() + 'px';
|
||||
}
|
||||
var heightDiff = window.height() - offset[1];
|
||||
var nodeHeight = node.getHeight();
|
||||
|
||||
if ((data.length * nodeHeight) > heightDiff)
|
||||
// Limit the size of the popup to the window height, minus 12 pixels
|
||||
height = parseInt(heightDiff/nodeHeight) * nodeHeight - 12 + 'px';
|
||||
|
||||
menu.setStyle({ top: top + "px",
|
||||
left: offset[0] + "px",
|
||||
height: height,
|
||||
|
||||
@@ -359,7 +359,8 @@ function performSearch() {
|
||||
}
|
||||
if (MailEditor.currentField.value.trim().length > 0) {
|
||||
var urlstr = ( UserFolderURL + "Contacts/allContactSearch?search="
|
||||
+ escape(MailEditor.currentField.value) );
|
||||
+ MailEditor.currentField.value ); log (urlstr);
|
||||
// + escape(MailEditor.currentField.value) ); log (urlstr);
|
||||
document.contactLookupAjaxRequest =
|
||||
triggerAjaxRequest(urlstr, performSearchCallback, MailEditor.currentField);
|
||||
}
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 647 B |
@@ -294,7 +294,7 @@ SPAN.toolbarButton:active
|
||||
.toolbarButton .buttonLabel
|
||||
{ margin: auto; }
|
||||
|
||||
/* popups */
|
||||
/* contextual menus & popups */
|
||||
|
||||
.menu,
|
||||
.popupMenu
|
||||
@@ -309,7 +309,9 @@ SPAN.toolbarButton:active
|
||||
border-top: 1px solid #d6cfc6;
|
||||
border-left: 1px solid #d6cfc6;
|
||||
border-right: 1px solid #424142;
|
||||
border-bottom: 1px solid #424142; }
|
||||
border-bottom: 1px solid #424142;
|
||||
overflow: auto;
|
||||
overflow-x: hidden; }
|
||||
|
||||
.popupMenu
|
||||
{ background-color: #fff; }
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 902 B |
Reference in New Issue
Block a user