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

Transparent background? #22

Closed
yueqiw opened this issue Jul 14, 2018 · 3 comments
Closed

Transparent background? #22

yueqiw opened this issue Jul 14, 2018 · 3 comments

Comments

@yueqiw
Copy link

yueqiw commented Jul 14, 2018

Hi,

The package is great for shiny apps. I'm wondering if it's possible to use transparent background so that the previous plots won't disappear entirely? Thanks!

@trafficonese
Copy link

The problem is not the background-color. The problem is, that when the spinner shows, the underlying ouput visibility is set to hidden.

To undo this you have to change the spinner.js code.
Uncomment line 4 (below) and you get what you want:
$(".recalculating").siblings(".load-container").siblings('.shiny-bound-output, .shiny-output-error').css('visibility', 'hidden');

@DavidPatShuiFong
Copy link

A working example can be found by Gao Zheng at Pill-GZ@358c007

It doesn't work perfectly well with datatables, for which the height of the table is not known at the time withspinner is called, and so is estimated. The problem is that, when/if the table is changed, the 'estimated' height is placed, as blank space, above the table.

In that case, I found I need to set proxy.height to zero. The 'spinner' ends up appearing at the top of where the table will appear.

@daattali
Copy link
Owner

I've added a hide.ui parameter to support this.

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

No branches or pull requests

4 participants