Skip to main content

Search and Top Navigation

#7193 closed bug (duplicate)

Opened March 23, 2011 11:34PM UTC

Closed November 13, 2012 02:36AM UTC

Resizable: Delta is applied to returned size in resize event but not to element

Reported by: Nimphious Owned by:
Priority: minor Milestone: 2.0.0
Component: ui.resizable Version: 1.8.11
Keywords: haspatch Cc:
Blocked by: Blocking:
Description

When resizing a resizable element, the difference between the previous and new sizes is applied to the previous size and returned, but is not applied to the resizable until the next resize event call.

http://jsbin.com/inujo

Why is the last resize calculation not applied to the element, but is returned by the resize event?

Attachments (0)
Change History (7)

Changed March 24, 2011 08:35AM UTC by Nimphious comment:1

Sorry, pasting the link missed the digit at the end.

http://jsbin.com/inujo4

Changed March 24, 2011 12:17PM UTC by rdworth comment:2

I find it a lot easier to see with more contrasting colors: http://jsbin.com/inujo4/2

Note that when you resize quickly to make the boxes smaller some red shows through around the right and bottom of the yellow.

Changed March 24, 2011 12:18PM UTC by rdworth comment:3

This is fixed by changing

// plugins callbacks need to be called first
this._propagate("resize", event);

el.css({
	top: this.position.top + "px", left: this.position.left + "px",
	width: this.size.width + "px", height: this.size.height + "px"
});

if (!this._helper && this._proportionallyResizeElements.length)
	this._proportionallyResize();

this._updateCache(data);

// calling the user callback at the end
this._trigger('resize', event, this.ui());

to

// plugins callbacks need to be called first
this._propagate("resize", event);

if (!this._helper && this._proportionallyResizeElements.length)
	this._proportionallyResize();

this._updateCache(data);

el.css({
	top: this.position.top + "px", left: this.position.left + "px",
	width: this.size.width + "px", height: this.size.height + "px"
});

// calling the user callback at the end
this._trigger('resize', event, this.ui());

No idea if this would cause other issues

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

milestone: 1.9.02.0.0

Changed November 04, 2012 03:22AM UTC by mikesherov comment:5

keywords: → haspatch
status: newopen
summary: Delta is applied to returned size value in resizable's resize event but not to elementResizable: Delta is applied to returned size in resize event but not to element

Changed November 09, 2012 08:08AM UTC by eromba comment:6

This looks like a duplicate of #5817 -- in my testing, the proposed fix for that issue seems to resolve this one as well.

Changed November 13, 2012 02:36AM UTC by mikesherov comment:7

resolution: → duplicate
status: openclosed

Duplicate of #5817.