diff options
author | Andrés Manelli <andresmanelli@gmail.com> | 2018-03-17 00:31:19 -0300 |
---|---|---|
committer | Andrés Manelli <andresmanelli@gmail.com> | 2018-03-17 00:31:19 -0300 |
commit | 454523dd4744b2bccb6805dad59abd664fdacb31 (patch) | |
tree | aba0d7cca6a98ee1028adb8852f2680e54aa2055 /client/components | |
parent | bb37d8fa964c0d03721a664387e74300fde09eef (diff) | |
download | wekan-454523dd4744b2bccb6805dad59abd664fdacb31.tar.gz wekan-454523dd4744b2bccb6805dad59abd664fdacb31.tar.bz2 wekan-454523dd4744b2bccb6805dad59abd664fdacb31.zip |
Fix scroll board when opening cardDetails
Diffstat (limited to 'client/components')
-rw-r--r-- | client/components/boards/boardBody.js | 4 | ||||
-rw-r--r-- | client/components/cards/cardDetails.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/client/components/boards/boardBody.js b/client/components/boards/boardBody.js index 3632da9b..aa7b6a75 100644 --- a/client/components/boards/boardBody.js +++ b/client/components/boards/boardBody.js @@ -133,8 +133,8 @@ BlazeComponent.extendComponent({ }, scrollLeft(position = 0) { - const lists = this.$('.js-lists'); - lists && lists.animate({ + const swimlanes = this.$('.js-swimlanes'); + swimlanes && swimlanes.animate({ scrollLeft: position, }); }, diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js index 701bcd1b..ab8a6288 100644 --- a/client/components/cards/cardDetails.js +++ b/client/components/cards/cardDetails.js @@ -44,8 +44,8 @@ BlazeComponent.extendComponent({ const cardPanelWidth = 510; const bodyBoardComponent = this.parentComponent().parentComponent(); - const $cardContainer = bodyBoardComponent.$('.js-lists'); const $cardView = this.$(this.firstNode()); + const $cardContainer = bodyBoardComponent.$('.js-swimlanes'); const cardContainerScroll = $cardContainer.scrollLeft(); const cardContainerWidth = $cardContainer.width(); |