Permalink
Browse files

Fix Composer textarea losing its height across route changes

  • Loading branch information...
skywalker512 committed Feb 13, 2018
1 parent fe03a71 commit 9eae13f75f78e9baf01814cd386d5ebebab0a6ad
Showing with 6 additions and 0 deletions.
  1. +3 −0 js/forum/dist/app.js
  2. +3 −0 js/forum/src/components/Composer.js
@@ -20661,6 +20661,9 @@ System.register('flarum/components/Composer', ['flarum/Component', 'flarum/utils
if (!isInitialized) {
defaultHeight = this.$().height();
}
// Set the height of the Composer element and its contents on each redraw,
// so that they do not lose it if their DOM elements are recreated.
this.updateHeight();

if (isInitialized) return;

@@ -90,6 +90,9 @@ class Composer extends Component {
if (!isInitialized) {
defaultHeight = this.$().height();
}
// Set the height of the Composer element and its contents on each redraw,
// so that they do not lose it if their DOM elements are recreated.
his.updateHeight();

This comment has been minimized.

@rootphantomer

rootphantomer Mar 12, 2018

这块是不是少了t,his.updateHeight();

This comment has been minimized.

@rootphantomer

rootphantomer Mar 12, 2018

this.updateHeight();

This comment has been minimized.

@skywalker512

skywalker512 Mar 18, 2018

Collaborator

是的少了一个,只有app.js会合并到js文件中,所以没什么问题。这个分支是临时分支,以后会合并到主分支当中。


if (isInitialized) return;

0 comments on commit 9eae13f

Please sign in to comment.