Skip to content
Permalink
Browse files

Resizable: Changed the way box size is determined when using a helper…

…. Fixed #6926 - Window doesn't change to size that helper shows when snapping to grid
  • Loading branch information
georgemarshall committed Feb 2, 2011
1 parent b3fcf17 commit 002f9a2629b906983c0b9edaffa0f7b9b5e457f5
Showing with 3 additions and 3 deletions.
  1. +3 −3 ui/jquery.ui.resizable.js
@@ -322,10 +322,10 @@ $.widget("ui.resizable", $.ui.mouse, {

if(this._helper) {
var pr = this._proportionallyResizeElements, ista = pr.length && (/textarea/i).test(pr[0].nodeName),
soffseth = ista && $.ui.hasScroll(pr[0], 'left') /* TODO - jump height */ ? 0 : self.sizeDiff.height,
soffsetw = ista ? 0 : self.sizeDiff.width;
soffseth = ista && $.ui.hasScroll(pr[0], 'left') /* TODO - jump height */ ? 0 : self.sizeDiff.height,
soffsetw = ista ? 0 : self.sizeDiff.width;

var s = { width: (self.size.width - soffsetw), height: (self.size.height - soffseth) },
var s = { width: (self.helper.width() - soffsetw), height: (self.helper.height() - soffseth) },
left = (parseInt(self.element.css('left'), 10) + (self.position.left - self.originalPosition.left)) || null,
top = (parseInt(self.element.css('top'), 10) + (self.position.top - self.originalPosition.top)) || null;

1 comment on commit 002f9a2

@scottgonzalez

This comment has been minimized.

Copy link
Member

@scottgonzalez scottgonzalez commented on 002f9a2 Dec 10, 2013

@georgemarshall Can you please sign our CLA?

Please sign in to comment.
You can’t perform that action at this time.