UI.set embedSize on resizeend, fixes #1934

This commit is contained in:
j 2013-11-27 11:20:51 +00:00
parent 778f935017
commit 7a9c2795e7

View file

@ -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});
}
}),