mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 13:07:17 -04:00
Fix opening card scrolls to wrong position when many swimlanes and card at bottom of board.
Thanks to xet7 !
This commit is contained in:
parent
f1482cfa94
commit
adcc33ed7f
1 changed files with 10 additions and 5 deletions
|
@ -212,11 +212,6 @@ BlazeComponent.extendComponent({
|
|||
//-------------
|
||||
}
|
||||
|
||||
if (!Utils.isMiniScreen()) {
|
||||
Meteor.setTimeout(() => {
|
||||
this.scrollParentContainer();
|
||||
}, 500);
|
||||
}
|
||||
const $checklistsDom = this.$('.card-checklist-items');
|
||||
|
||||
$checklistsDom.sortable({
|
||||
|
@ -440,10 +435,20 @@ BlazeComponent.extendComponent({
|
|||
'click .js-maximize-card-details'() {
|
||||
Meteor.call('toggleCardMaximized');
|
||||
autosize($('.card-details'));
|
||||
if (!Utils.isMiniScreen()) {
|
||||
Meteor.setTimeout(() => {
|
||||
this.scrollParentContainer();
|
||||
}, 500);
|
||||
}
|
||||
},
|
||||
'click .js-minimize-card-details'() {
|
||||
Meteor.call('toggleCardMaximized');
|
||||
autosize($('.card-details'));
|
||||
if (!Utils.isMiniScreen()) {
|
||||
Meteor.setTimeout(() => {
|
||||
this.scrollParentContainer();
|
||||
}, 500);
|
||||
}
|
||||
},
|
||||
'click .js-vote'(e) {
|
||||
const forIt = $(e.target).hasClass('js-vote-positive');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue