mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
fixed drop area top
This commit is contained in:
@@ -456,6 +456,7 @@ define(['taskbar'], function(taskbar) {
|
|||||||
if(window.FileReader) {
|
if(window.FileReader) {
|
||||||
var postContainer = $('#cmp-uuid-' + post_uuid),
|
var postContainer = $('#cmp-uuid-' + post_uuid),
|
||||||
drop = postContainer.find('.imagedrop'),
|
drop = postContainer.find('.imagedrop'),
|
||||||
|
tabContent = postContainer.find('.tab-content'),
|
||||||
textarea = postContainer.find('textarea');
|
textarea = postContainer.find('textarea');
|
||||||
|
|
||||||
$(document).off('dragstart').on('dragstart', function(e) {
|
$(document).off('dragstart').on('dragstart', function(e) {
|
||||||
@@ -468,7 +469,7 @@ define(['taskbar'], function(taskbar) {
|
|||||||
if(draggingDocument) {
|
if(draggingDocument) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
drop.css('top', textarea.position().top + 'px');
|
drop.css('top', tabContent.position().top + 'px');
|
||||||
drop.css('height', textarea.height());
|
drop.css('height', textarea.height());
|
||||||
drop.css('line-height', textarea.height() + 'px');
|
drop.css('line-height', textarea.height() + 'px');
|
||||||
drop.show();
|
drop.show();
|
||||||
|
|||||||
Reference in New Issue
Block a user