Skip to main content

Search and Top Navigation

#8604 closed bug (duplicate)

Opened September 27, 2012 03:18AM UTC

Closed October 26, 2012 01:33AM UTC

resizable inside resizable object

Reported by: zackniwa Owned by:
Priority: minor Milestone: 2.0.0
Component: ui.resizable Version: 1.8.23
Keywords: Cc:
Blocked by: Blocking:
Description

The issue is simple, I have a div, which is resizable, and another div, resizable too, inside the first resizable div. The handles are the same, but when I want to resize the parent div, nothing happen. The div inside is working perfectly with all the setting, but it block the resize of the parent. There is a sample source code of that issue.

<script>
	$('#ok_div').resizable({handles:'e'});
	$('#error_div').resizable({containment:'#error_div',handles:'e'});
</script>


<div id="error_div" style="width:200px; height: 200px;border: 1px solid #F00;">
	<div id="ok_div" style="width:100px; height: 100px;border: 1px solid #000;">
	</div>
</div>

Sorry, I work locally so I have no link to provide with this example. All you have to do is include Jquery UI with resizable core.

And sorry for my english, I'm not really good.

JQuery Version 1.8.1

Jquery UI Version 1.8.23

Attachments (0)
Change History (4)

Changed September 27, 2012 03:44AM UTC by zackniwa comment:1

Sorry, I sent an error in my containment: Here's the correction.

<script>
	$('#ok_div').resizable({containment:'#error_div',handles:'e'});
	$('#error_div').resizable({handles:'e'});
</script>


<div id="error_div" style="width:200px; height: 200px;border: 1px solid #F00;">
	<div id="ok_div" style="width:100px; height: 100px;border: 1px solid #000;">
	</div>
</div>

Changed September 27, 2012 08:04PM UTC by zackniwa comment:2

I found a solution, but this issue still remaining for that case.

The problem of this is issue is the call order. If you switch the 2 lines of javascript code, everything works fine.

So the problem is the call order, it will be nice to not have a problem like this in the future release.

Changed October 11, 2012 02:52PM UTC by scottgonzalez comment:3

milestone: 1.9.02.0.0

Changed October 26, 2012 01:33AM UTC by tj.vantoll comment:4

resolution: → duplicate
status: newclosed

Duplicate of #5025.