100% width
How can I have 100% width on a widget?
2
people have this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
-
Inappropriate?100% of what?
-
Inappropriate?Do you mean have a widget's width fill up to its contents 100%? While widgets could have their width set to 100%, it tends to be problematic. So we offer width and height fields to enter absolute pixel dimensions.
Another follow up question: are you getting a widget or developing one?
I’m confident
-
Inappropriate?I am experiencing this also. I am trying to deploy a widget. It is all HTML based on dynamic content. I have styled everything for a liquid layout and everything should be set to use up 100% of the parent container, but it only shows up around 150px wide, or something terribly narrow
Specifying an absolute width is certainly problematic if I want to support the widget being placed in multiple page types.
In the widget editor you must specify a width and height, but there is a checkbox for size dynamically. What does that checkbox even mean if I have to specify absolute dimensions? Are there any true 100% width workarounds?
I’m confused
-
Inappropriate?Phillip,
Here's a doc on how Size Dynamically works:
http://docs.widgetbox.com/developers/...
It works to size the widget dynamically based on the contents within. It does not mean size it dynamically to the container that it's in. This is currently not an option, but is certainly an interesting idea.
-
Inappropriate?Thanks for the response and link, Dave. It would be GREAT if widgetbox supported 100% width based on the parent container.
For a widget like mine, which is all user generated text (like the last 5 twitter messages), dynamic sizing won't do much since there is nothing from which the javascript can gauge dimensions. I added a wrapping div with a css min-width rule, but the widgetbox js sets the iframe's width to that min-width amount (in this scenario, I might as well set an explicit width in the widgetbox editor)
Thanks for you help
I’m pondering solutions
-
Inappropriate?Thanks for the note, Phillip. Not that it helps you, but we do have a technical way to do this, but the security issues that it can cause are too high risk for users of the widget for us to make this available to developers. I'll see about finding alternative means and see if we can get this into the product in the near future.
-
Inappropriate?Potential solution on the Widgetbox end:
In the Widgetbox dev area where dimensions of the widget are set, why not have a checkbox that simply applies width="100%" to the iframe?
If you are allowing users to set a width of 9999px you might as well allow 100% width ;) I think this solves the issue somewhat gracefully.
thanks
I’m pretty please
-
Inappropriate?Thanks Phillip. Changes to runtime don't generally happen on the fly, but we'll certainly have an internal discussion on the matter.
Loading Profile...




