force all iOS editors to minimum height for compat
This commit is contained in:
parent
22fc761cc3
commit
ad6cb3c638
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue