-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: resizer and baseline conflict with chart panning #156
Conversation
@@ -75,6 +76,7 @@ export abstract class ChartBaseElement implements ChartEntity { | |||
this.deactivate(); | |||
this._state = 'disabled'; | |||
} | |||
this.entities.forEach(comp => comp.disable()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't understand why disable method calls this.deactivate, and this.deactivate calls deactivate function of all child entities
Because of that we basically never call 'disable' and 'enable' functions of child entities which leads to incorrect behavior
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice question, need some time to figure it out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should say for me disabled
state and disable <-> enable
transitions are completely useless
They were added a loooong time ago and I think we can mark them as deprecated
. Looks like activate
and deactivate
do exactly the same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turned out they are not the same, using deactivate to child entities didn't make YDragNDrop entities of chart area pan "disabled" (we still can move chart vertically), only disable makes it work as expected
@@ -75,6 +76,7 @@ export abstract class ChartBaseElement implements ChartEntity { | |||
this.deactivate(); | |||
this._state = 'disabled'; | |||
} | |||
this.entities.forEach(comp => comp.disable()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should say for me disabled
state and disable <-> enable
transitions are completely useless
They were added a loooong time ago and I think we can mark them as deprecated
. Looks like activate
and deactivate
do exactly the same
611a29d
to
0535e07
Compare
No description provided.