summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/boards
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-03-22 12:10:33 +0000
committerPhil Hughes <me@iamphill.com>2017-03-22 12:10:33 +0000
commit8df5b369979ca3c34182f49cc734b01cab861f21 (patch)
treede5cd63af80e760192a8c666e4c6b89c8ce00186 /app/assets/javascripts/boards
parent78840333d7e1432fc6235b59e90040d0f9e43b41 (diff)
downloadgitlab-ce-8df5b369979ca3c34182f49cc734b01cab861f21.tar.gz
Fixed bug stopping issue boards cards being dragged
This was caused by the window being zoomed & therefore returning a non-rounded number. The number now gets rounded to correctly work in the if statement Closes #29576
Diffstat (limited to 'app/assets/javascripts/boards')
-rw-r--r--app/assets/javascripts/boards/components/board_list.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/boards/components/board_list.js b/app/assets/javascripts/boards/components/board_list.js
index 9248d036497..86e6c26e570 100644
--- a/app/assets/javascripts/boards/components/board_list.js
+++ b/app/assets/javascripts/boards/components/board_list.js
@@ -48,7 +48,7 @@ import boardCard from './board_card';
this.list.getIssues(false);
}
- if (this.scrollHeight() > this.listHeight()) {
+ if (this.scrollHeight() > Math.ceil(this.listHeight())) {
this.showCount = true;
} else {
this.showCount = false;