From baf4561edb039f7a315cc79d9ef2260e24c9411d Mon Sep 17 00:00:00 2001 From: MaysWind Date: Tue, 24 May 2016 01:19:01 +0800 Subject: [PATCH] fix task name width is wrong in task list page --- app/scripts/controllers/list.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scripts/controllers/list.js b/app/scripts/controllers/list.js index 521910e..5368d44 100644 --- a/app/scripts/controllers/list.js +++ b/app/scripts/controllers/list.js @@ -6,12 +6,12 @@ var downloadTaskRefreshPromise = null; var getTitleWidth = function () { - var titleColumn = angular.element('.task-table > .row > .col-md-8:first-child'); + var titleColumn = angular.element('#task-table > .row > .col-md-8:first-child'); if (titleColumn.length > 0) { return titleColumn.width(); } else { - var taskTable = angular.element('.task-table'); + var taskTable = angular.element('#task-table'); if ($window.innerWidth <= 767) { return taskTable.width();