From 5f71297bc972a5998dc5235e92762c27923f5489 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Wed, 21 Sep 2011 12:51:41 -0400
Subject: [PATCH] - Add notice on autocompletion that not all records were displayed

---
 skins/default/splitter.js |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/skins/default/splitter.js b/skins/default/splitter.js
index af66575..59ebb51 100644
--- a/skins/default/splitter.js
+++ b/skins/default/splitter.js
@@ -1,6 +1,6 @@
 
 /**
- * RoundCube splitter GUI class
+ * Roundcube splitter GUI class
  *
  * @constructor
  */
@@ -15,6 +15,7 @@
   this.pos = attrib.start ? attrib.start * 1 : 0;
   this.relative = attrib.relative ? true : false;
   this.drag_active = false;
+  this.callback = attrib.callback;
 
   this.init = function()
   {
@@ -24,7 +25,7 @@
     // create and position the handle for this splitter
     this.p1pos = this.relative ? $(this.p1).position() : $(this.p1).offset();
     this.p2pos = this.relative ? $(this.p2).position() : $(this.p2).offset();
-    
+
     if (this.horizontal) {
       var top = this.p1pos.top + this.p1.offsetHeight;
       this.layer = new rcube_layer(this.id, {x: 0, y: top, height: 10, 
@@ -82,6 +83,8 @@
         this.p2.style.width = (new_width > 0 ? new_width : 0) + 'px';
       }
     }
+    $(this.p2).resize();
+    $(this.p1).resize();
   };
 
   /**
@@ -90,7 +93,7 @@
   this.onDragStart = function(e)
   {
     // disable text selection while dragging the splitter
-    if (window.webkit || bw.safari)
+    if (bw.konq || bw.chrome || bw.safari)
       document.body.style.webkitUserSelect = 'none';
 
     this.p1pos = this.relative ? $(this.p1).position() : $(this.p1).offset();
@@ -153,7 +156,7 @@
   this.onDragStop = function(e)
   {
     // resume the ability to highlight text
-    if (window.webkit || bw.safari)
+    if (bw.konq || bw.chrome || bw.safari)
       document.body.style.webkitUserSelect = 'auto';
 
     // cancel the listening for drag events
@@ -166,6 +169,9 @@
 
     this.set_cookie();
 
+    if (typeof this.callback == 'function')
+      this.callback(this);
+
     return bw.safari ? true : rcube_event.cancel(e);
   };
 

--
Gitblit v1.9.1