Hi Sasha / Klaus
Thank you both for your replies. I've been trying out the javascript options you both suggested instead of the CSS method I was using previously.
I have found that compared to my pure CSS method, using javascript gives me more dynamic control over the aspect ratio, and more control over what to do with rounding when using fixed aspect ratios leads to subpixels.
Firstly I tried the potentially simpler route of
native javascript. Unfortunately, it seems that there are quite a few cross browser issues with getting the value of 'width' so I started pulling out parts of the jQuery source code. However, the code required to cover all these issues got complex very quickly, and I'm not confident of that I will keep on top of any changes to these cross browser issues, so concluded that native javascript was not the best for this situation.
So, for now I am going to try to use the jQuery library to achieve what I want.
However, I have also posted a
feature request detailing a more integrated solution that could benefit other pano producers.
Thanks again to you both for your help.
David