LearnNewsExamplesServices
Frontmatter
id5008
titledialog.Base: maximise is no longer animated
stateClosed
labels
buggood first issue
assignees[]
createdAtOct 12, 2023, 8:07 AM
updatedAtAug 27, 2024, 11:15 PM
githubUrlhttps://github.com/neomjs/neo/issues/5008
authortobiu
commentsCount2
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtAug 27, 2024, 11:15 PM

dialog.Base: maximise is no longer animated

Closed v8.1.0 buggood first issue
tobiu
tobiu commented on Oct 12, 2023, 8:07 AM

regression issue.

before removing the wrapper, we had the following CSS rule(s): https://github.com/neomjs/neo/blob/7c7d3bd794ab3f00845de69645dc0214feee4fab/resources/scss/src/dialog/Base.scss#L25

to do it in a good way, the dialog should get a new config called animate_.

animateTargetId is still needed for spawn animations, but a more generic config to enable / disable all animations seems reasonable.

afterSetAnimate()should add a new top level CSS rule like neo-animated which should contain similar rules to the old wrapper CSS.

tobiu added the bug label on Oct 12, 2023, 8:07 AM
tobiu added the good first issue label on Oct 12, 2023, 8:07 AM
ExtAnimal
ExtAnimal Oct 12, 2023, 8:20 AM

animate is too broad a name. This is to affect only whether maximize animates or not?

I suggest making maximizable a potentially granular config eg:

maximizable : true/false to enable and disable maximizing (and control the visibility of the button) in the basic case.

and

maximizable : {
    animate : true
}

It's a truthy value, so it is maximizable. And it describe how to maximize.

This concept van be applied to many configs whose modes of operation is spread among several related configs.

tobiu
tobiu Aug 27, 2024, 11:15 PM

bug already fixed.

the maximise button is controlled via a header action. feel free to open a follow up ticket, in case we want to be able to maximise without an animation.

tobiu closed this issue on Aug 27, 2024, 11:15 PM