Problems with resizing picture script~
Posted: Wed Apr 16, 2008 3:32 am
Hi, I am having problems with a picture resizing script. I am using a drag-resize method, and was hoping to limit the range to only proportionate measures (ex: Picture is 2x4. Would like to limit the range to something like 4x8. Something proportionate. At the moment, it can be 1x8, etc, making the photo either extremely slim, fat, etc)
I gave up, and the so the current script im using is:
form_.style.width = (Event.pointerX(e)+fX-eX)+'px';
form_.style.height = (Event.pointerY(e)+fY-eY)+'px';
I have tried other methods, but nothing seems to work. Sorry if its confusing. Your help would be most appreciated if possible. Thanks in advance.
I gave up, and the so the current script im using is:
form_.style.width = (Event.pointerX(e)+fX-eX)+'px';
form_.style.height = (Event.pointerY(e)+fY-eY)+'px';
I have tried other methods, but nothing seems to work. Sorry if its confusing. Your help would be most appreciated if possible. Thanks in advance.