Skip to main content

Search and Top Navigation

#5025 closed bug (fixed)

Opened December 28, 2009 12:45PM UTC

Closed December 14, 2013 09:11PM UTC

Last modified December 14, 2013 09:12PM UTC

Resizable: Elements that have inner resizable elements do not work

Reported by: dosinovsky Owned by:
Priority: minor Milestone: 1.11.0
Component: ui.resizable Version: 1.7.2
Keywords: haspatch Cc:
Blocked by: Blocking:
Description

1. Create resizable inside another resizable with the same type of handles (for example, both have 'e' handle). 'handles' option must be given as string.

2. Initialize inner resizable first and after that initialize outer.

3. Now try to resize outer resizable - it doesn't work.

In debugger you can see that in _mouseCapture function this expression

$(this.handles[i])[0] returns handle of inner resizable instead of outer.

How to fix:

In this._renderAxis find this lines

if(this.handles[i].constructor == String)

this.handles[i] = $(this.handles[i], this.element).show();

and change last line to

this.handles[i] = $(this.handles[i] + ':last', this.element).show();

Attachments (0)
Change History (7)

Changed December 29, 2009 01:36AM UTC by scottgonzalez comment:1

milestone: TBD1.8

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

milestone: 1.9.02.0.0

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

status: newopen
summary: resizable element which have inner resizable elements doesn't workResizable: Elements that have inner resizable elements do not work

Verified that this is still an issue in 1.9.1 - http://jsfiddle.net/bLKUU/.

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

keywords: → haspatch

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

#8604 is a duplicate of this ticket.

Changed December 14, 2013 09:11PM UTC by Jyoti Deka comment:6

resolution: → fixed
status: openclosed

Resizable: modified to allow resizing when resizables are nested.

Fixes #5025

Closes gh-1149

Changeset: ec5f395260c5e4b678d2fe39c5405d466ee8369e

Changed December 14, 2013 09:12PM UTC by mikesherov comment:7

milestone: 2.0.01.11.0