radiovisual / jquery-responsive-ratio

Force DOM elements to be responsive at a specific aspect ratio.
MIT License
0 stars 0 forks source link

Does not scale properly at smaller sizes #3

Open radiovisual opened 7 years ago

radiovisual commented 7 years ago

When the item meant to be responsive gets into the mobile sizes, the aspect ratio starts to skew.

This is probably because you are using a baked-in ratio of 0.563, which obviously will not work for all objects and all orientations. You should be auto-calculating the ratio based on the actual object's original width and height.