From 050ab738e40d95dec1276a2718d3822355141ec6 Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Sun, 19 Jan 2014 22:06:25 -0500 Subject: [PATCH] fixed drop area top --- public/src/modules/composer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/src/modules/composer.js b/public/src/modules/composer.js index 35fcd16c34..a930cd509c 100644 --- a/public/src/modules/composer.js +++ b/public/src/modules/composer.js @@ -456,6 +456,7 @@ define(['taskbar'], function(taskbar) { if(window.FileReader) { var postContainer = $('#cmp-uuid-' + post_uuid), drop = postContainer.find('.imagedrop'), + tabContent = postContainer.find('.tab-content'), textarea = postContainer.find('textarea'); $(document).off('dragstart').on('dragstart', function(e) { @@ -468,7 +469,7 @@ define(['taskbar'], function(taskbar) { if(draggingDocument) { return; } - drop.css('top', textarea.position().top + 'px'); + drop.css('top', tabContent.position().top + 'px'); drop.css('height', textarea.height()); drop.css('line-height', textarea.height() + 'px'); drop.show();