mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Fix scroll board when opening cardDetails
This commit is contained in:
parent
bb37d8fa96
commit
454523dd47
2 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -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();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue