renevanderlende / dyndiv

Automatically exported from code.google.com/p/dyndiv
0 stars 0 forks source link

Maintain Aspect Ratio of Divs #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Is there anyway to enforce a div to maintain the aspect ratio?

It is great code by the way. I'm creating an image cropping and resizing
tool using this and php/GD image library. Will show you the results once
finished.

To be able to maintain appropriate dimensions of images in divs would be
great. 

Let me know if it is or isn't possible please. Thanks!!! Keep up the
fantastic work!

Original issue reported on code.google.com by brett...@gmail.com on 10 Oct 2008 at 12:19

GoogleCodeExporter commented 9 years ago

Original comment by Markus.B...@googlemail.com on 15 Nov 2008 at 4:02

GoogleCodeExporter commented 9 years ago
Hi There, 
I actually changed the file and thought i'd upload it here to give others the 
chance. 

If you want the div to keep aspect ratio just add this to the class 
dynDiv_keepAspect

Original comment by brett...@gmail.com on 16 Nov 2008 at 1:52

Attachments:

GoogleCodeExporter commented 9 years ago
Hi Bretto36,
thanks a lot for your change file, i will include this in the next version with 
also
some small fixes. ;)

Greetings,
- Markus B.

Original comment by Markus.B...@googlemail.com on 11 Jan 2009 at 12:19

GoogleCodeExporter commented 9 years ago
Unforently this is not a easy change, because it has some problem with the DIV
Limitation when a restricted area is defined.

But i will try my best to insert this feature.

Original comment by Markus.B...@googlemail.com on 5 Feb 2009 at 9:14

GoogleCodeExporter commented 9 years ago
Fixed in Version 1.0 RC1 which will released today.

Original comment by Markus.B...@googlemail.com on 11 Jul 2009 at 5:37

GoogleCodeExporter commented 9 years ago

Original comment by Markus.B...@googlemail.com on 11 Jul 2009 at 5:37