From 7a9c2795e72e19aefae046d4bd171953b9decd18 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 27 Nov 2013 11:20:51 +0000 Subject: [PATCH] UI.set embedSize on resizeend, fixes #1934 --- static/js/textPanel.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/js/textPanel.js b/static/js/textPanel.js index 7b106795..e830a68d 100644 --- a/static/js/textPanel.js +++ b/static/js/textPanel.js @@ -455,8 +455,11 @@ pandora.ui.textEmbed = function() { pandora.user.ui.embedSize = data.size; pandora.$ui.text.update(); }, - resizeend: function() { + resizeend: function(data) { $iframe.attr('src') && $overlay.hide(); + // set to 0 so that UI.set registers a change of the value + pandora.user.ui.embedSize = 0; + pandora.UI.set({embedSize: data.size}); } }),