From 2dae59e7491792f8e270e79bca6d8492b16875d9 Mon Sep 17 00:00:00 2001 From: Pierre Date: Mon, 7 May 2018 18:15:49 +0200 Subject: [PATCH] Fix iOS issue : unability to edit large posts --- assets/js/components/posts/edit.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/assets/js/components/posts/edit.js b/assets/js/components/posts/edit.js index 39ad23fa..b935c9a2 100644 --- a/assets/js/components/posts/edit.js +++ b/assets/js/components/posts/edit.js @@ -99,6 +99,12 @@ ComunicWeb.components.posts.edit = { class: "editor-container" }); + //iOS fix : use slimscroll if required + updateDiv.style.maxHeight = (window.innerHeight - 200) + "px"; + $(updateDiv).slimscroll({ + height: "100%" + }); + //Create update editor var editorDiv = createElem2({ appendTo: updateDiv,