Skip to content

Conversation

daattali
Copy link

I think the "style" param is necessary in order to have non-default width/height eg. fooWidget(width = "50%") without passing along the style, the width won't actually be 50%.

And I'm wondering if we need to use the ... arguments at all? Or is it always safe to ignore them?

I think the "style" param is necessary in order to have non-default width/height eg. `fooWidget(width = "50%")` without passing along the style, the width won't actually be 50%.

And I'm wondering if we need to use the `...` arguments at all?  Or is it always safe to ignore them?
@jcheng5
Copy link
Collaborator

jcheng5 commented Jul 14, 2016

Maybe a bad example, span tags don't respect width anyway... (unless you change their display mode to e.g. inline-block)

@daattali
Copy link
Author

@jcheng5 true, I neglected to realize this is a span specifically. Maybe the example should be left as-is but there should be a note nearby that says that the style param is also suggested to be passed through if they want the user-supplied height+width to go through. Or maybe I'm just wrong altogether - I only started looking at htmlwidgets this week and am a complete noob...

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