From 6e847af943624bc533eab7e6bcdfbcfea09f9fe6 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Fri, 12 May 2017 22:00:51 +0000 Subject: [PATCH] Widgets: Fix deferred rendering of controls for media widgets until container element fully expands. Adds omitted call to `renderWhenAnimationDone()` which was missed when this code was copied from the Text widget. Amends [40656]. See #40750. git-svn-id: https://develop.svn.wordpress.org/trunk@40660 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/widgets/media-widgets.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-admin/js/widgets/media-widgets.js b/src/wp-admin/js/widgets/media-widgets.js index 1985e7abf0..cd03b09633 100644 --- a/src/wp-admin/js/widgets/media-widgets.js +++ b/src/wp-admin/js/widgets/media-widgets.js @@ -1065,6 +1065,7 @@ wp.mediaWidgets = ( function( $ ) { widgetControl.render(); } }; + renderWhenAnimationDone(); /* * Note that the model and control currently won't ever get garbage-collected