diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-01-03 05:52:20 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-03 05:52:20 +0000 |
commit | 0402e326cb1274a4decaa54d3606453818a665f9 (patch) | |
tree | 1a4d61e91019a6d23c553428b6886ed6b6633c35 | |
parent | 09a844fffc39adf5a082dc1bd4b953a83ddb2a73 (diff) |
Resize the quickedit box after rotation.
-rw-r--r-- | core/js/quickedit.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/js/quickedit.js b/core/js/quickedit.js index 5dad5e1f..fac227ba 100644 --- a/core/js/quickedit.js +++ b/core/js/quickedit.js @@ -36,6 +36,14 @@ var quickedit = function(url, img) { img.attr("width", data.width); img.attr("height", data.height); img.attr("src", data.src); + var pos = img.position(); + $("#gQuickEditPane").css({ + "position": "absolute", + "top": pos.top, + "left": pos.left, + "width": img.innerWidth() + 1, + "height": 32 + }); } }); }; |