Skip to content
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

Allowing Spinner to keep height on redraw + delaying spinner show (avoid too many or too quick show/hide cycle) #61

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

rgriffogoes
Copy link

Adding new features: set spinner to keep currrent output height, and have some delay before showing spinner (and if a hide comes before delay, it doesnt show at all).

These features are configurable by keep.height and show.delay properties.

Default values should behave almost* the same as before: with a 0 delay timeout function it can be that the show/hide cycle behaves differently, but on my understanding it would behave better (e.g.: if somehow the hide spinner happens immediately after the display, nothing will happen while before the change the dom would be affected twice)

…r to keep currrent output height, and have some delay before showing spinner (and if a hide comes before delay, it doesnt show at all)
@daattali
Copy link
Owner

daattali commented Mar 9, 2021

Hi @rgriffogoes thanks a lot for the initiative! I haven't taken a close look yet, but I do notice that this PR is for two separate features. Could you please submit two separate PRs, one for each issue?

@daattali
Copy link
Owner

@rgriffogoes Could you edit this PR to only contain the code relevant for "keep height on redraw" please?

@daattali
Copy link
Owner

daattali commented Mar 5, 2023

@rgriffogoes I want to do some cleanup of old PRs - do you think you'll have time in 2023 to resolve this PR, or should we abandon it?

@daattali
Copy link
Owner

daattali commented Mar 5, 2023

For cleaner history and to better understand the PR, it'd be helpful if each of the features you added will have its own PR

@daattali
Copy link
Owner

@rgriffogoes Let me know if you want to keep this PR alive!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants