tweak iOS composer heights a bit

This commit is contained in:
Jeff Atwood 2017-02-22 15:48:39 -08:00
parent c00ffabac3
commit 22fc761cc3
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ export function isAppleDevice() {
// available pixel of height for the editor
function calcHeight(composingTopic) {
const winHeight = window.innerHeight;
const ratio = composingTopic ? 0.44 : 0.5;
const ratio = composingTopic ? 0.45 : 0.48;
const min = composingTopic ? 300 : 350;
return Math.max(parseInt(winHeight*ratio), min);
}