|
@@ -79,19 +79,15 @@ BlazeComponent.extendComponent({
|
|
scrollParentContainer() {
|
|
scrollParentContainer() {
|
|
const cardPanelWidth = 600;
|
|
const cardPanelWidth = 600;
|
|
const parentComponent = this.parentComponent();
|
|
const parentComponent = this.parentComponent();
|
|
|
|
+
|
|
/*
|
|
/*
|
|
// Incomplete fix about bug where opening card scrolls to wrong place
|
|
// Incomplete fix about bug where opening card scrolls to wrong place
|
|
// https://github.com/wekan/wekan/issues/4572#issuecomment-1184149395
|
|
// https://github.com/wekan/wekan/issues/4572#issuecomment-1184149395
|
|
// TODO sometimes parentComponent is not available, maybe because it's not
|
|
// TODO sometimes parentComponent is not available, maybe because it's not
|
|
// yet created?!
|
|
// yet created?!
|
|
- //
|
|
|
|
- // uncommented again by chrisi51
|
|
|
|
- // only with that, the autoscroll feature is working properly
|
|
|
|
- // after my fixes, all scrollings where correct
|
|
|
|
- */
|
|
|
|
- if (!parentComponent) return;
|
|
|
|
|
|
+ if (!parentComponent) return;
|
|
const bodyBoardComponent = parentComponent.parentComponent();
|
|
const bodyBoardComponent = parentComponent.parentComponent();
|
|
-
|
|
|
|
|
|
+ */
|
|
|
|
|
|
//On Mobile View Parent is Board, Not Board Body. I cant see how this funciton should work then.
|
|
//On Mobile View Parent is Board, Not Board Body. I cant see how this funciton should work then.
|
|
if (bodyBoardComponent === null) return;
|
|
if (bodyBoardComponent === null) return;
|
|
@@ -221,12 +217,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({
|
|
@@ -452,11 +442,11 @@ 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);
|
|
|
|
-// }
|
|
|
|
|
|
+ if (!Utils.isMiniScreen()) {
|
|
|
|
+ Meteor.setTimeout(() => {
|
|
|
|
+ this.scrollParentContainer();
|
|
|
|
+ }, 500);
|
|
|
|
+ }
|
|
},
|
|
},
|
|
'click .js-minimize-card-details'() {
|
|
'click .js-minimize-card-details'() {
|
|
Meteor.call('toggleCardMaximized');
|
|
Meteor.call('toggleCardMaximized');
|