hs.allowWidthReduction
Allow HTML popups to shrink to fit the width of the browser window.
If allowWidthReduction is true, the popup will shrink to fit the browser window width, even if a width is specified using CSS or, for iframes,
hs.objectWidth. However, you can set a minimal allowed width using
hs.minWidth.
Details
Requires |
html, autosize |
Type |
boolean |
Default value |
false |
Overrideable inline |
Yes |
Example
Making the expander use all the available width
This example uses AJAX to populate the content.
Setting the width of the expander using CSS:
<style type="text/css">
.highslide-wrapper .highslide-html-content {
width: auto;
}
</style>
The link markup:
<a class="highslide" href="ajax.htm" onclick="return hs.htmlExpand(this,
{ objectType: 'ajax', allowWidthReduction: true })">
Click me
</a>
The effect:
Click me
See also