mirror of https://github.com/zulip/zulip.git
drafts: Fix CSS transition when opening drafts.
The code was all there, but we weren't triggering a style calculation. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
parent
9f7e90f68b
commit
674abdef43
|
@ -343,6 +343,11 @@ exports.launch = function () {
|
|||
exports.remove_old_drafts();
|
||||
var drafts = format_drafts(draft_model.get());
|
||||
render_widgets(drafts);
|
||||
|
||||
// We need to force a style calculation on the newly created
|
||||
// element in order for the CSS transition to take effect.
|
||||
$('#draft_overlay').css('opacity');
|
||||
|
||||
exports.open_modal();
|
||||
exports.set_initial_element(drafts);
|
||||
setup_event_handlers();
|
||||
|
|
Loading…
Reference in New Issue