I will try explain in short what I am trying to achieve and hopefully I will find a resolution :-)
I have a slideshow with few images. I am trying to fit the images to the browser height and then determine the width of the image accordingly.
The images are around 2000 pixels wide and 1333 pixels height.
So again it should fit to the height of the browser window and then calculate the width of the image in order to keep the right ratio.
I am trying to "play" with the window resize (below code) yet have no clue how to add the width calculation... I hope this is somehow the right direction?