mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
closes #925
This commit is contained in:
@@ -208,7 +208,7 @@ define(['taskbar'], function(taskbar) {
|
|||||||
break;
|
break;
|
||||||
case 'fa fa-list':
|
case 'fa fa-list':
|
||||||
// Nothing selected
|
// Nothing selected
|
||||||
insertIntoInput(postContentEl, "\n\n* list item");
|
insertIntoInput(postContentEl, "\n* list item");
|
||||||
break;
|
break;
|
||||||
case 'fa fa-link':
|
case 'fa fa-link':
|
||||||
if (selectionStart === selectionEnd) {
|
if (selectionStart === selectionEnd) {
|
||||||
@@ -282,9 +282,13 @@ define(['taskbar'], function(taskbar) {
|
|||||||
if (resizeActive) {
|
if (resizeActive) {
|
||||||
position = (e.clientY + resizeOffset);
|
position = (e.clientY + resizeOffset);
|
||||||
var newHeight = $(window).height() - position;
|
var newHeight = $(window).height() - position;
|
||||||
|
var paddingBottom = parseInt(postContainer.css('padding-bottom'), 10);
|
||||||
if(newHeight > $(window).height() - $('#header-menu').height() - 20) {
|
if(newHeight > $(window).height() - $('#header-menu').height() - 20) {
|
||||||
newHeight = $(window).height() - $('#header-menu').height() - 20;
|
newHeight = $(window).height() - $('#header-menu').height() - 20;
|
||||||
|
} else if (newHeight < paddingBottom) {
|
||||||
|
newHeight = paddingBottom;
|
||||||
}
|
}
|
||||||
|
|
||||||
postContainer.css('height', newHeight);
|
postContainer.css('height', newHeight);
|
||||||
$('body').css({'margin-bottom': newHeight});
|
$('body').css({'margin-bottom': newHeight});
|
||||||
resizeSavePosition(newHeight);
|
resizeSavePosition(newHeight);
|
||||||
|
|||||||
Reference in New Issue
Block a user