From a3cd100c9408c257f3547fc362fd91ce89daa372 Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 9 Jan 2017 11:46:51 +0100 Subject: [PATCH] apply yflory's safari patch --- www/pad/main.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/www/pad/main.js b/www/pad/main.js index 09c2be0f4..e957c5634 100644 --- a/www/pad/main.js +++ b/www/pad/main.js @@ -630,6 +630,11 @@ define([ if (!APP.isMaximized) { editor.execCommand('maximize'); APP.isMaximized = true; + // We have to call it 3 times in Safari in order to have the editor fully maximized -_- + if ((''+window.navigator.vendor).indexOf('Apple') !== -1) { + editor.execCommand('maximize'); + editor.execCommand('maximize'); + } } module.patchText = TextPatcher.create({