diff mbox

[Branch,~linaro-validation/lava-server/trunk] Rev 319: Don't shrink the sub-menu by border width

Message ID 20111129093719.13982.81902.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Zygmunt Krynicki Nov. 29, 2011, 9:37 a.m. UTC
------------------------------------------------------------
revno: 319
committer: Zygmunt Krynicki <zygmunt.krynicki@linaro.org>
branch nick: lava-server
timestamp: Tue 2011-11-22 21:38:52 +0100
message:
  Don't shrink the sub-menu by border width
  
  This is not really needed and causes ugly wraps in the sub-menu items
modified:
  lava_server/templates/layouts/content.html


--
lp:lava-server
https://code.launchpad.net/~linaro-validation/lava-server/trunk

You are subscribed to branch lp:lava-server.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-server/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'lava_server/templates/layouts/content.html'
--- lava_server/templates/layouts/content.html	2011-11-22 17:48:43 +0000
+++ lava_server/templates/layouts/content.html	2011-11-22 20:38:52 +0000
@@ -175,12 +175,6 @@ 
           var _sub_menu_width_adj = current_sub_menu.outerWidth() - current_sub_menu.width();
           console.log("_sub_menu_width_adj is ", _sub_menu_width_adj);
 
-          // Take border width into account
-          if (_sub_menu_width_adj != 0) {
-            _sub_menu_width -= _sub_menu_width_adj;
-            console.log("_sub_menu_width changes to ", _sub_menu_width);
-          }
-
           // Check how much space we have left
           var _space_left = $("#lava-panel").width() - _left - current_sub_menu.outerWidth(true);
           console.log("_space left is ", _space_left);