fix task name width is wrong in task list page
This commit is contained in:
parent
82f454dbf2
commit
baf4561edb
|
@ -6,12 +6,12 @@
|
||||||
var downloadTaskRefreshPromise = null;
|
var downloadTaskRefreshPromise = null;
|
||||||
|
|
||||||
var getTitleWidth = function () {
|
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) {
|
if (titleColumn.length > 0) {
|
||||||
return titleColumn.width();
|
return titleColumn.width();
|
||||||
} else {
|
} else {
|
||||||
var taskTable = angular.element('.task-table');
|
var taskTable = angular.element('#task-table');
|
||||||
|
|
||||||
if ($window.innerWidth <= 767) {
|
if ($window.innerWidth <= 767) {
|
||||||
return taskTable.width();
|
return taskTable.width();
|
||||||
|
|
Reference in a new issue