mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 01:15:47 +01:00
possibly fixing issue where mobile composer textarea is not properly sized when initially opened. Sort of related to #2417
This commit is contained in:
@@ -253,7 +253,6 @@ define('composer', [
|
|||||||
updateTitle(postData, postContainer);
|
updateTitle(postData, postContainer);
|
||||||
|
|
||||||
activate(post_uuid);
|
activate(post_uuid);
|
||||||
resize.reposition(postContainer);
|
|
||||||
|
|
||||||
if (config.allowFileUploads || config.hasImageUploadPlugin) {
|
if (config.allowFileUploads || config.hasImageUploadPlugin) {
|
||||||
uploads.initialize(post_uuid);
|
uploads.initialize(post_uuid);
|
||||||
@@ -319,6 +318,7 @@ define('composer', [
|
|||||||
|
|
||||||
formatting.addComposerButtons();
|
formatting.addComposerButtons();
|
||||||
focusElements(postContainer);
|
focusElements(postContainer);
|
||||||
|
resize.reposition(postContainer);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, config, utils*/
|
/* globals app, define, config, utils*/
|
||||||
|
|
||||||
define('composer/resize', function() {
|
define('composer/resize', function() {
|
||||||
var resize = {};
|
var resize = {};
|
||||||
@@ -38,6 +38,7 @@ define('composer/resize', function() {
|
|||||||
|
|
||||||
postContainer.css('visibility', 'visible').css('z-index', 2);
|
postContainer.css('visibility', 'visible').css('z-index', 2);
|
||||||
|
|
||||||
|
// Add some extra space at the bottom of the body so that the user can still scroll to the last post w/ composer open
|
||||||
$('body').css({'margin-bottom': postContainer.css('height')});
|
$('body').css({'margin-bottom': postContainer.css('height')});
|
||||||
|
|
||||||
resizeWritePreview(postContainer);
|
resizeWritePreview(postContainer);
|
||||||
|
|||||||
Reference in New Issue
Block a user