FriendsOfFlarum / mason

Add custom fields to discussions
https://discuss.flarum.org/d/7028
MIT License
20 stars 14 forks source link

Fixed Composer default height to account for mason field height #16

Closed cpascu closed 2 years ago

cpascu commented 4 years ago

When starting a new discussion, the default composer wrapper height was not tall enough to account for both the mason fields and the discussion body. The fields would push the body down and you wouldn't be able to click into it to start typing without resizing the wrapper manually first.

This PR fixes that issue.

clarkwinkelmann commented 4 years ago

Couldn't Composer.minimumHeight be used for this ?

I originally PR'd the minimumHeight feature into Flarum back in 2017 with the intention of using it for Mason, but I just never managed to find the time to actually implement it https://github.com/flarum/core/pull/1272