From patchwork Fri Aug 24 00:26:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael-Doyle Hudson X-Patchwork-Id: 10913 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 B9B1123E53 for ; Fri, 24 Aug 2012 00:26:14 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 67EE1A1853F for ; Fri, 24 Aug 2012 00:25:58 +0000 (UTC) Received: by iafj25 with SMTP id j25so68673iaf.11 for ; Thu, 23 Aug 2012 17:26:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf :content-type:mime-version:x-launchpad-project:x-launchpad-branch :x-launchpad-message-rationale:x-launchpad-branch-revision-number :x-launchpad-notification-type:to:from:subject:message-id:date :reply-to:sender:errors-to:precedence:x-generated-by :x-launchpad-hash:x-gm-message-state; bh=J00MEpHQS9dFh2aGqwVxAmBJyJXQwCc1JoQC4Takykc=; b=oGK3PoYfmZLOmurTXMVY6iLJricPxy0payuu9gJMyfWL9Z0rBnKZthspUk3GWcO7l0 k8cVEly3QEcERY1Tt0j9ojq+JkEL9iKjPHDrBLrzYPw7BkoMAU+bZH+/lzL+z6FuxKZd wLJ2E3sKLBoJDWsfxg+bmsM6zKh6V9UrzftjNW6kSFC0HRXQmnriHg3dPW/lQ3CQIOp/ CpLfv/8VNyHWE3tZ5inVe44heBnwoJdUMrhQPQIracO11StKzHVpPRhnaWJIv4QJOf5x zpfhX45tC8XwJ61XAqaKAOobZPHp04jCHFd3boB+9tsZTPsfjCVQyOlmCH7PICYhj7vR WKPw== Received: by 10.50.45.162 with SMTP id o2mr322419igm.0.1345767973596; Thu, 23 Aug 2012 17:26:13 -0700 (PDT) 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.50.184.232 with SMTP id ex8csp289641igc; Thu, 23 Aug 2012 17:26:12 -0700 (PDT) Received: by 10.216.131.204 with SMTP id m54mr1712421wei.93.1345767971732; Thu, 23 Aug 2012 17:26:11 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id n4si1834837wiz.17.2012.08.23.17.26.11 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 23 Aug 2012 17:26:11 -0700 (PDT) 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 1T4hj0-0000Bq-So for ; Fri, 24 Aug 2012 00:26:10 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id C730EE0259 for ; Fri, 24 Aug 2012 00:26:10 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-dashboard X-Launchpad-Branch: ~linaro-validation/lava-dashboard/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 331 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dashboard/trunk] Rev 331: ensure table row heights match up in image status view Message-Id: <20120824002610.28097.61663.launchpad@ackee.canonical.com> Date: Fri, 24 Aug 2012 00:26:10 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="15843"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 9ed5f1386c4f1fd38b9316d93cb1fd5b89eb74fa X-Gm-Message-State: ALoCoQlJO/wl3rMwexmHF9Ok4bS1/c1ED3jEt6zCxbOlLSlVj0UO6OdtnuOuIqTVjSvA5cmGeljm ------------------------------------------------------------ revno: 331 committer: Michael Hudson-Doyle branch nick: image-status-row-height timestamp: Fri 2012-08-24 12:24:42 +1200 message: ensure table row heights match up in image status view modified: dashboard_app/static/js/image-report.js --- lp:lava-dashboard https://code.launchpad.net/~linaro-validation/lava-dashboard/trunk You are subscribed to branch lp:lava-dashboard. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-dashboard/trunk/+edit-subscription === modified file 'dashboard_app/static/js/image-report.js' --- dashboard_app/static/js/image-report.js 2012-07-16 22:51:19 +0000 +++ dashboard_app/static/js/image-report.js 2012-08-24 00:24:42 +0000 @@ -9,6 +9,19 @@ scroller.width(scroller.width() + space); if (atRight) scroller.scrollLeft(table.attr('scrollWidth')); } +function _fixRowHeights () { + var index = 0; + var nameRows = $("#test-run-names > tbody > tr"); + var resultRows = $("#results-table > tbody > tr"); + for (; index < nameRows.length; index++) { + var nameRow = $(nameRows[index]); + var resultRow = $(resultRows[index]); + var nameRowHeight = parseInt(nameRow.css('height')); + var resultRowHeight = parseInt(resultRow.css('height')); + nameRow.css('height', Math.max(nameRowHeight, resultRowHeight)); + resultRow.css('height', Math.max(nameRowHeight, resultRowHeight)); + } +} $(window).ready( function () { // Hook up the event and run resize ASAP (looks jumpy in FF if you @@ -16,6 +29,7 @@ $(window).resize(_resize); $("#scroller").scrollLeft(100000); _resize(); + _fixRowHeights(); function _submit() { $(this).submit(); @@ -124,3 +138,4 @@ // run it again after everything is loaded (things end up wrong in // chromium if you don't do this). $(window).load(_resize); +$(window).load(_fixRowHeights);