Skip to main content

Search and Top Navigation

#5504 closed bug (invalid)

Opened April 11, 2010 05:04AM UTC

Closed November 18, 2012 08:56AM UTC

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: diou@vetorial.net
Blocked by: Blocking:
Description

<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

Attachments (0)
Change History (6)

Changed October 19, 2010 03:30PM UTC by scottgonzalez comment:1

priority: criticalmajor

Changed October 11, 2012 09:07PM UTC by scottgonzalez comment:2

milestone: TBD2.0.0

Changed October 26, 2012 01:27AM UTC by tj.vantoll comment:3

owner: → 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 - http://jsfiddle.net/tj_vantoll/dvyYw/. If you have any further information on the issue please let us know and we will re-investigate.

Changed October 26, 2012 02:13AM UTC by diou comment:4

status: pendingnew

Sorry I have not isolated the code.

But a look at the link http://www.bernardosilva.com.br/mover/

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

Changed November 04, 2012 03:58AM UTC by tj.vantoll comment:5

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 - http://jsfiddle.net/tj_vantoll/9tLLC/. It doesn't appear to have anything to do with the margin.

Changed November 18, 2012 08:56AM UTC by trac-o-bot comment:6

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!