Hi, I am having trouble making the sample program work properly. I integrated it into my app, tweaked it a bit to set the containing <div>'s dimensions the way I wanted (in particular its height) and now it does in fact resize dynamically as I resize the window in and out, pretty much the way I was hoping it would. It has an unfortunate quirk that I can't get rid of, unfortunately.
What seems to be happening is that the gallery does not obey the calculated dimensions properly on the initial display of the page. Something very peculiar is happening because I can breakpoint the call to SetGallerySize in the Javascript, and I can observe in the Chrome debugger that there is an attribute of "height" on the containing <div> which is correct and exactly what the Javascript calculated. Then when the screen updates, it uses the viewport height as the height of the gallery, DESPITE the fact that even after the page updates, it is still possible to view the containing <div>'s element attributes and see the proper value still there. The debugger itself reports a displayed height of the container div that is different from same debugger's displayed value of the element's "height" attribute, which is correct.
I'm mystified! Any thoughts? The startup code appears bound and determined to use the viewport height as the initial display height no matter what my carefully crafted Javascript puts in the div's "height" attribute. But the calls to setGallerySize (from the sample's doLayout method) seem to address that when I resize the window.
Thank you for any help you can offer.