Fix scroll board when opening cardDetails

This commit is contained in:
Andrés Manelli 2018-03-17 00:31:19 -03:00
parent bb37d8fa96
commit 454523dd47
2 changed files with 3 additions and 3 deletions

View file

@ -133,8 +133,8 @@ BlazeComponent.extendComponent({
}, },
scrollLeft(position = 0) { scrollLeft(position = 0) {
const lists = this.$('.js-lists'); const swimlanes = this.$('.js-swimlanes');
lists && lists.animate({ swimlanes && swimlanes.animate({
scrollLeft: position, scrollLeft: position,
}); });
}, },

View file

@ -44,8 +44,8 @@ BlazeComponent.extendComponent({
const cardPanelWidth = 510; const cardPanelWidth = 510;
const bodyBoardComponent = this.parentComponent().parentComponent(); const bodyBoardComponent = this.parentComponent().parentComponent();
const $cardContainer = bodyBoardComponent.$('.js-lists');
const $cardView = this.$(this.firstNode()); const $cardView = this.$(this.firstNode());
const $cardContainer = bodyBoardComponent.$('.js-swimlanes');
const cardContainerScroll = $cardContainer.scrollLeft(); const cardContainerScroll = $cardContainer.scrollLeft();
const cardContainerWidth = $cardContainer.width(); const cardContainerWidth = $cardContainer.width();