From patchwork Tue Nov 29 09:37:19 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zygmunt Krynicki X-Patchwork-Id: 5360 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 7A03923E17 for ; Tue, 29 Nov 2011 09:42:33 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id 68175A18060 for ; Tue, 29 Nov 2011 09:42:33 +0000 (UTC) Received: by faao24 with SMTP id o24so879336faa.11 for ; Tue, 29 Nov 2011 01:42:33 -0800 (PST) Received: by 10.152.162.10 with SMTP id xw10mr30702780lab.12.1322559753096; Tue, 29 Nov 2011 01:42:33 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.41.198 with SMTP id h6cs32858lal; Tue, 29 Nov 2011 01:42:32 -0800 (PST) Received: by 10.227.200.71 with SMTP id ev7mr14227059wbb.24.1322559440131; Tue, 29 Nov 2011 01:37:20 -0800 (PST) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id gb2si8035759wbb.95.2011.11.29.01.37.19 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 29 Nov 2011 01:37:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1RVK7r-0007KW-Qf for ; Tue, 29 Nov 2011 09:37:19 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id C0ED3E0435 for ; Tue, 29 Nov 2011 09:37:19 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-server X-Launchpad-Branch: ~linaro-validation/lava-server/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 319 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [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> Date: Tue, 29 Nov 2011 09:37:19 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="14399"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 695578905cb2ced60843153abfcd150e3f1eaa50 ------------------------------------------------------------ revno: 319 committer: Zygmunt Krynicki 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 === 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);