Link to home
Start Free TrialLog in
Avatar of Marco Gasi
Marco GasiFlag for Spain

asked on

jquery-ui ui-resizable-se strange behavior

Hi everybody.
In a 3rd party site I'm working on to refactor it, they used jquery-ui resizable to allow user to resize an image after the upload. Everything works fine, but resizing the image I see the handles go to the top speedier than the image itself.
You can see what I mean in the 2 screenshots
User generated imageUser generated imageI reproduced the issue here
What am I missing here?
Avatar of Mukesh Yadav
Mukesh Yadav
Flag of India image

You shared localhost url so please share a public url so we can help you;
Avatar of Marco Gasi

ASKER

Ooops! The link is this
Avatar of Moussa Mokhtari
Moussa Mokhtari

Try to use all the handles (assuming that ur image id is #myimage ) :

$( "#myimage" ).resizable({
  handles: "n, e, s, w"
});

Open in new window

Hi Moussa. No that doesn't solve the problem. Check it now. It looks like the problem is with the height : if you resize width the image is correctly resized preserving ratio but the ui-resizable height doesn't change; if you resize the height the image doesn't resize and only ui-resizable is resized...
ASKER CERTIFIED SOLUTION
Avatar of Marco Gasi
Marco Gasi
Flag of Spain image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It solved my issue.
Thank you both for trying to help, but this time I did it myself :-)