diff --git a/skins/elastic/ui.js b/skins/elastic/ui.js index 7298fa672..930123cd8 100644 --- a/skins/elastic/ui.js +++ b/skins/elastic/ui.js @@ -65,6 +65,9 @@ function rcube_elastic_ui() // Initialize menu dropdowns dropdowns_init(); + // Update layout after some initialization + resize(); + // Setup various UI elements setup(); @@ -200,8 +203,6 @@ function rcube_elastic_ui() env.resize_timeout = setTimeout(function() { resize(); }, 25); }); - resize(); - rcmail .addEventListener('message', message_displayed) .addEventListener('menu-open', menu_toggle)