From 0f7cf9628c625c06abc50e402d8f5f32ca9bfa71 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 16 Sep 2007 00:52:11 +0000 Subject: [PATCH] mujma: BUGFIX: No longer photo under FF/Linux can be dragged out of dragging area. (merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@41992 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/ImageEditor/Resize.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/ImageEditor/Resize.js b/javascript/ImageEditor/Resize.js index 1dbc9d59..ced6b493 100644 --- a/javascript/ImageEditor/Resize.js +++ b/javascript/ImageEditor/Resize.js @@ -44,8 +44,8 @@ var Resize = { { if(this.element.getTop() < this.topBoxConstraint) this.element.style.top = this.topBoxConstraint + "px"; if(this.element.getLeft() < this.leftBoxConstraint) this.element.style.left = this.leftBoxConstraint + "px"; - if(this.element.getTop() + this.element.getHeight() >= this.element.getParentHeight()) this.element.style.top = this.element.getParentHeight() - this.element.getHeight() - 3 + 'px'; if(this.element.getLeft() + this.element.getWidth() > this.element.getParentWidth()) this.element.style.left = this.element.getParentWidth() - this.element.getWidth() - 3 + 'px'; + if(this.element.getTop() + this.element.getHeight() >= this.element.getParentHeight()) this.element.style.top = this.element.getParentHeight() - this.element.getHeight() - 3 + 'px'; imageBox.reCenterIndicator(); },