mirror of
https://github.com/flarum/framework.git
synced 2024-12-13 07:03:35 +08:00
Fix composer only sliding down some of the way
This commit is contained in:
parent
c42627b46d
commit
f1a7e8c115
|
@ -17,7 +17,7 @@ class Composer extends Component {
|
||||||
// (which is set when the resizing handle is dragged), and the composer's
|
// (which is set when the resizing handle is dragged), and the composer's
|
||||||
// current state.
|
// current state.
|
||||||
this.computedHeight = computed('height', 'position', function(height, position) {
|
this.computedHeight = computed('height', 'position', function(height, position) {
|
||||||
if (position === Composer.PositionEnum.MINIMIZED || position === Composer.PositionEnum.HIDDEN) {
|
if (position === Composer.PositionEnum.MINIMIZED) {
|
||||||
return '';
|
return '';
|
||||||
} else if (position === Composer.PositionEnum.FULLSCREEN) {
|
} else if (position === Composer.PositionEnum.FULLSCREEN) {
|
||||||
return $(window).height();
|
return $(window).height();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user