Topic: my gallery is not resizable horizontally

Hello everybody,

could you have a look at my site: http://www.david-aubert.com/architecture-5/
My galleries are not resizable horizontally, i'd like to know why, if someone had an idea it could help.
thank you for your look.
Kind regards

DAP

Re: my gallery is not resizable horizontally

Do you mean vertically? Your gallery seems to be resizing horizontally (when I reduce my browser's width) OK.

Your gallery does not resize vertically because you have set a fixed value for your gallery's height (720px) so the gallery will be this height no matter what the size or shape of the user's browser window is.

You could try using a percentage height for your gallery if you like but you may run into problems.
In order for a gallery to resize dynamically with changes to the size of the user's browser window, the gallery's dimensions and those of all parent containers must be expressed as percentages. If there is a fixed value anywhere up the chain, then the gallery's dimensions will become fixed (for example, 100% x 100% x 800px = 800px).

In a WordPress environment where you have little or no control over the dimensions of the parent containers into which the gallery is embedded, you may not be able to guarantee that the parent containers have percentage heights or indeed have been assigned any heights at all via CSS. If this is the case, then SimpleViewer will not be able to determine what its own height should be (100% of what?) and the gallery may fail to display.

In WordPress (and other CMS environments), I would recommend setting a fixed gallery height (as you currently do).

Please see these links for further information on percentage dimensions:
FAQ: http://www.simpleviewer.net/simpleviewe … ml#embed_7
Using Percentage Heights: http://simpleviewer.net/simpleviewer/su … html#embed

Steven Speirs
SimpleViewer Support Team.

Re: my gallery is not resizable horizontally

thank u Steven for your answer and the good interpretation of my bad explanation !! ;-)

Indeed, i meant vertically and i had not put 100% in the options. That's done now in this gallery set this way: Gallery Width 100% Gallery Height 100%. Nothing appears!!

http://www.david-aubert.com/scenes/

thanks for your feedback
Even if i have not much hope because of your answer that encourage me to fix the size in a wordpress environnement

DAP

Re: my gallery is not resizable horizontally

That's done now in this gallery set this way: Gallery Width 100% Gallery Height 100%. Nothing appears!!

This is due to the issue outlined in this FAQ and is the reason why the default height for a gallery in WP-SimpleViewer is a fixed pixel value (600px) rather than a percentage.

It is not usual to have a gallery resize vertically on a page which is designed to scroll vertically. No other content on a standard WordPress page resizes when the height of the user's browser window changes. (The vertical scroll bar just becomes smaller or larger.)

If you really want your gallery to resize vertically when the height of the user's browser window changes, then you could embed your gallery in your WordPress page manually (rather than use WP-SimpleViewer) and use JavaScript to listen for a change in the browser window height and then dynamically reassign a new height to the gallery's container.
An example of how this can be achieved can be found in the View Vertical Resizable Gallery with Header Example sample gallery in the Using a Resizable Gallery with a Header support section. (You can view the source of the web page in your browser to see the code that is used.)

Steven Speirs
SimpleViewer Support Team.

Re: my gallery is not resizable horizontally

Ok thanks
I think that's the time to say stop so for the moment i'll be ok with a vertically non-resizable gallery!!