From 8df5b369979ca3c34182f49cc734b01cab861f21 Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Wed, 22 Mar 2017 12:10:33 +0000 Subject: 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 --- app/assets/javascripts/boards/components/board_list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/assets/javascripts/boards') 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; -- cgit v1.2.1