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.
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 comment:1
Changed March 24, 2011 12:17PM UTC by 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 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 comment:4
milestone: | 1.9.0 → 2.0.0 |
---|
Changed November 04, 2012 03:22AM UTC by comment:5
keywords: | → haspatch |
---|---|
status: | new → open |
summary: | Delta is applied to returned size value in resizable's resize event but not to element → Resizable: Delta is applied to returned size in resize event but not to element |
Sorry, pasting the link missed the digit at the end.
http://jsbin.com/inujo4