force all iOS editors to minimum height for compat

This commit is contained in:
Jeff Atwood 2017-02-22 16:56:19 -08:00
parent 22fc761cc3
commit ad6cb3c638
1 changed files with 2 additions and 2 deletions

View File

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