From 834866bd8460527480a94be61859ad6ae74fae95 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Tue, 23 Jan 2018 14:47:46 +0100 Subject: [PATCH] Add fullscreen class when applicable --- src/converse-chatboxes.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/converse-chatboxes.js b/src/converse-chatboxes.js index 81b7257a3..60418d143 100644 --- a/src/converse-chatboxes.js +++ b/src/converse-chatboxes.js @@ -396,8 +396,12 @@ if (_.isNull(el)) { el = document.createElement('div'); el.setAttribute('id', 'conversejs'); + if (_.includes(['mobile', 'fullscreen'], _converse.view_mode)) { + el.classList.add('fullscreen'); + } // Converse.js expects a tag to be present. document.querySelector('body').appendChild(el); + } el.innerHTML = ''; this.setElement(el, false);