Highslide JS API Reference

Close Move
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam dapibus leo quis nisl. In lectus. Vivamus consectetuer pede in nisl. Mauris cursus pretium mauris. Suspendisse condimentum mi ac tellus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Donec sed enim. Ut vel ipsum. Cras consequat velit et justo. Donec mollis, mi at tincidunt vehicula, nisl mi luctus risus, quis scelerisque arcu nibh ac nisi. Sed risus. Curabitur urna. Aliquam vitae nisl. Quisque imperdiet semper justo. Pellentesque nonummy pretium tellus.
Resize

Object: hs

Variables

Functions

Events

Object: hs.Expander

Variables

Functions

Events



hs.minWidth

Pixel value for the minimum width of the expanded image.
If the viewport is small, the expanded pictures by default shrink to fit the area. Given that the actual size of the image is not smaller than the minWidth, the image never shrinks to a smaller width than this. The image always keeps the aspect ratio, and Highslide picks the smaller of hs.minWidth and hs.minHeight to calculate the size. The image shrinking can be avoided by setting hs.allowSizeReduction to false.

Details

Type integer
Default value 200
Overrideable inline Yes

Example

Resize your browser to a really small window to see the effect on this picture. In this case the height is lesser, so the image never gets narrower than 200px.

See also

New, Edit