mirror of
https://github.com/wekan/wekan.git
synced 2025-12-18 16:30:13 +01: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');
|
const $checklistsDom = this.$('.card-checklist-items');
|
||||||
|
|
||||||
$checklistsDom.sortable({
|
$checklistsDom.sortable({
|
||||||
|
|
@ -440,10 +435,20 @@ BlazeComponent.extendComponent({
|
||||||
'click .js-maximize-card-details'() {
|
'click .js-maximize-card-details'() {
|
||||||
Meteor.call('toggleCardMaximized');
|
Meteor.call('toggleCardMaximized');
|
||||||
autosize($('.card-details'));
|
autosize($('.card-details'));
|
||||||
|
if (!Utils.isMiniScreen()) {
|
||||||
|
Meteor.setTimeout(() => {
|
||||||
|
this.scrollParentContainer();
|
||||||
|
}, 500);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
'click .js-minimize-card-details'() {
|
'click .js-minimize-card-details'() {
|
||||||
Meteor.call('toggleCardMaximized');
|
Meteor.call('toggleCardMaximized');
|
||||||
autosize($('.card-details'));
|
autosize($('.card-details'));
|
||||||
|
if (!Utils.isMiniScreen()) {
|
||||||
|
Meteor.setTimeout(() => {
|
||||||
|
this.scrollParentContainer();
|
||||||
|
}, 500);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
'click .js-vote'(e) {
|
'click .js-vote'(e) {
|
||||||
const forIt = $(e.target).hasClass('js-vote-positive');
|
const forIt = $(e.target).hasClass('js-vote-positive');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue