ImageViewer Overlay to size relative to jpg dimensions


https://forum.kartris.com/Topic6388.aspx
Print Topic | Close Window

By shulemj - Tue 19 Jan 2016
I am trying to set the AJAX popup for the larger image to be sized equivalent to the image size. Currently it sets a popup as wide as frontend.display.images.large.width and as high as frontend.display.images.large.height, regardless of the size and shape of the actual image, thereby generating plenty extra white-space.

I've played with the following pages:
  • Image.aspx
  • ImageViewer.ascx
  • ImageViewer.ascx.vb
  • LargeImage.aspx
  • LargeImage.aspx.vb
  • ProductView.ascx
  • ProductView.ascx.vb

In the end, I've gotten nowhere.


It seems that the page who's setting the area dimensions (ImageViewer.ascx.vb) isn't aware of the images real properties.


If anyone can shed some light to the right direction, I'd really appreciate it.