From b33661d9d58aad89e2e8bc5d092ec70c5db16e76 Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 5 Jan 2017 15:21:17 +0100 Subject: [PATCH] don't toggle maximization state after setting --- www/pad/main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/www/pad/main.js b/www/pad/main.js index bdd8d0a71..09c2be0f4 100644 --- a/www/pad/main.js +++ b/www/pad/main.js @@ -627,7 +627,10 @@ define([ // this should only ever get called once, when the chain syncs var onReady = realtimeOptions.onReady = function (info) { - editor.execCommand('maximize'); + if (!APP.isMaximized) { + editor.execCommand('maximize'); + APP.isMaximized = true; + } module.patchText = TextPatcher.create({ realtime: info.realtime,