-
Notifications
You must be signed in to change notification settings - Fork 205
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
call widget.resize when slides are shown #199
base: master
Are you sure you want to change the base?
Conversation
This is great, but what if we don't have Also, sort of related, we discovered an issue with |
It doesn't need to be written as a jquery plugin that's just how I did it On Sat, Apr 9, 2016 at 9:52 AM, timelyportfolio [email protected]
|
Oh sorry you are talking about the resize thing (not the other issue I Net: at a practical level jquery will be present 98% of the time so this On Sat, Apr 9, 2016 at 10:41 AM, JJ Allaire [email protected] wrote:
|
On my phone but this http://clubmate.fi/jquerys-closest-function-and-pure-javascript-alternatives/ appears to offer a reasonable alternative to closest. I will volunteer to try this or some other ideas I have so that this will be available without jQuery. |
This looks good to me. And I agree with @jjallaire that we should roll with the |
Hmmm. I don't understand why this code changes anything--the registration right above (to @jjallaire Do you have a repro case I can look at? |
Indeed I can't repro any longer as it looks to me like the global shown I put the dygraphs code in long before that so for that case this fix is However, I was seeing the same problem with revealjs even with that commit. So it looks like none of this is necessary except that @bwewis still has On Mon, Apr 11, 2016 at 2:15 AM, Joe Cheng [email protected] wrote:
|
Will do, I just got back. I will first make sure I was using latest versions of everything, perhaps that machine had something old by chance. More soon. |
This PR hoists a workaround that I have in dygraphs into the core htmlwidgets. Here is the original code in dygraphs:
https://github.com/rstudio/dygraphs/blob/master/inst/htmlwidgets/dygraphs.js#L131-L144
The issue is that for dygraphs when they start out as display:none (which is the case in ioslides and revealjs among perhaps others) their width and height is 0. This means that when the slide they are hosted on is shown they appear invisible.
Most widgets don't have this problem, but at least one developed by @bwlewis does and it must also also affect others. @bwlewis Could you confirm that this resolves the problems you have been seeing?