-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Page movement when spinner is hidden #54
Comments
I haven't seen this issue before, can you show some small piece of code that shows the problem? |
Hey Dean, thanks for responding so quickly. I was able to replicate it by adding more graphs to the example shiny application created using RStudio IDE. If I scroll down so the title of the third graph is at the top of my screen I see the same movement.
|
Thanks, I was able to reproduce. After some digging around, it looks like a potential fix is to set the hidden spinner to |
I think I switched to visibility instead of display: none because there
were some issues with IE or old Edge, can't remember which one (if I recall
correctly the loading animations didn't restart after removing display:
none)
In 2020 this might not be relevant anymore.
…On Wed, Aug 26, 2020, 04:49 Dean Attali ***@***.***> wrote:
Thanks, I was able to reproduce. After some digging around, it looks like
a potential fix is to set the hidden spinner to display:none. But I'm
hesitant to add that CSS rule too quickly because that may have other side
effects - I'm not sure if it was hidden using visibility: hidden instead
of display:none for any good reason or not. It would require a lot of
testing
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#54 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADTBRJ4L5BD5WWSCGRFMHMTSCRZ5DANCNFSM4QHTKCTQ>
.
|
Aw you still follow the issues! Thanks for the heads up. I'd still like to do enough testing before making that change, but if it really is just old IE that breaks, I would be fine with that as long as you don't have objections |
I'm having the same problem in the Chrome browser here in November/December with all updated browser, R, and R packages. A fix sometime in the future would be nice. Thank you! |
A fix that worked for me without needing to change the visibility behaviour was to set a height to the loader class when using the default Using the example app with some text added for scrolling length to recreate the issue: The root cause seems to be that the div for the default spinner type does not have a minimum size and changes based on the current size of the animation's central bar: When hidden: Adding a style to the loader css class such as Of course, the height may need to vary if the default option for After adding the height: style: As far as I can tell from some testing and running this fix on a number of apps, this does not have any unintended consequences when using the default |
Thanks for the suggestion @andersonyyc . I can't immediately think of any reason why adding a height would be bad. I would think that a safer option is to add Is that 40px coming from somewhere specific, is it explicitly being set to 40 somewhere, or is it based on font size or something else? Or is it just what you observe in practice? Did you check that using the |
@daattali Thanks for the quick reply! Fair call on using a The Looking at this a bit closer, I think adding a I'm going to test this out over the next few days and hopefully provide a more complete fix. |
@antpingelli feel free to send a PR that changes from visibility to display. It'll have to go through a lot of testing but if it seems to work then it'll solve the issue |
Unfortunately after some rigorous testing, I found that changing the css from |
Hi @antpingelli @mortandersen @andersonyyc |
It seems that @phoebee-h verified in RinteRface/bs4Dash#245 and @mvarewyck verified in inbo/reporting-rshiny-grofwildjacht#172 that this fix works. Unless someone still sees this issue persisting, I will consider this fixed |
Hello, I am seeing some page movement when the spinner is hidden and the page is scrolled to a certain location as seen below:
I think this is coming from the fact that the spinner is just hidden and not actually removed
shinycssloaders/inst/assets/spinner.css
Line 21 in ccb6d50
Is it possible to change it to
display: none
, or some other way to stop the spinner from being active on the page?The text was updated successfully, but these errors were encountered: