Opened 13 years ago

Closed 10 years ago

#5504 closed bug (invalid)

resizable + margin not working

Reported by: diou Owned by: diou
Priority: major Milestone: 2.0.0
Component: ui.resizable Version: 1.8
Keywords: resizable margin Cc: [email protected]
Blocked by: Blocking:


<div style="margin:50px;width:200;height:200px;"> <div id="a">dimencionar</div> </div>

<script> $("#a").resizable({containment: 'parent'}); </script>

the maximum size of the object being resizing is limited to the size of the parent width - your margin

Change History (6)

comment:1 Changed 12 years ago by Scott González

Priority: criticalmajor

comment:2 Changed 10 years ago by Scott González

Milestone: TBD2.0.0

comment:3 Changed 10 years ago by tj.vantoll

Owner: set to diou
Status: newpending

Thanks for taking the time to contribute to the jQuery UI project! Unfortunately I am unable to create the problem described in this ticket - If you have any further information on the issue please let us know and we will re-investigate.

comment:4 Changed 10 years ago by diou

Status: pendingnew

Sorry I have not isolated the code.

But a look at the link

Resize the blue div, and you'll see that the limit of resize is not given by the size of the parent element.

Hope that helps

comment:5 Changed 10 years ago by tj.vantoll

Status: newpending

Thanks, but in your example containment: 'parent' is commented out. I moved your example over to jsFiddle and it looks like the containment is working other than being off a little because of the fixed positioned container - It doesn't appear to have anything to do with the margin.

comment:6 Changed 10 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.