Move resize() call to init callback

Fixes list header title alignment
pull/5742/merge
Aleksander Machniak 7 years ago
parent b45c009e37
commit f301823130

@ -93,9 +93,6 @@ function rcube_elastic_ui()
// Setup various UI elements
setup();
// Update layout after initialization
resize();
/**
* Setup procedure
@ -610,12 +607,16 @@ function rcube_elastic_ui()
rcmail.env.thread_padding = '1.5rem';
// Update layout after initialization
// In devel mode we have to wait until all styles are applied by less
if (rcmail.env.devel_mode && window.less) {
less.pageLoadFinished.then(function() {
resize();
});
}
else {
resize();
}
// Add date format placeholder to datepicker inputs
var func, format;

Loading…
Cancel
Save