Client: Resize handler tidied
authorDarren <darren@darrenwhitlen.com>
Sat, 24 Nov 2012 11:00:55 +0000 (11:00 +0000)
committerDarren <darren@darrenwhitlen.com>
Sat, 24 Nov 2012 11:00:55 +0000 (11:00 +0000)
client/assets/dev/view.js

index 539f6df13c6b8949e4bcead496ce6ca6564a70d3..0d6ca8e7368abe0546240d521bbc75268e938ece 100644 (file)
@@ -1081,12 +1081,14 @@ _kiwi.view.Application = Backbone.View.extend({
 \r
         // Set the panels width depending on the memberlist visibility\r
         if (el_memberlists.css('display') != 'none') {\r
-            // Handle + panels to the side of the memberlist\r
-            el_panels.css('right', el_memberlists.outerWidth(true) + el_resize_handle.outerWidth(true));\r
-            el_resize_handle.css('left', el_memberlists.position().left - el_resize_handle.outerWidth(true));\r
+            // Panels to the side of the memberlist\r
+            el_panels.css('right', el_memberlists.outerWidth(true));\r
+            // The resize handle sits overlapping the panels and memberlist\r
+            el_resize_handle.css('left', el_memberlists.position().left - (el_resize_handle.outerWidth(true) / 2));\r
         } else {\r
-            // Memberlist is hidden so handle + panels to the right edge\r
-            el_panels.css('right', el_resize_handle.outerWidth(true));\r
+            // Memberlist is hidden so panels to the right edge\r
+            el_panels.css('right', 0);\r
+            // And move the handle just out of sight to the right\r
             el_resize_handle.css('left', el_panels.outerWidth(true));\r
         }\r
     },\r