UI.set embedSize on resizeend, fixes #1934
This commit is contained in:
parent
778f935017
commit
7a9c2795e7
1 changed files with 4 additions and 1 deletions
|
@ -455,8 +455,11 @@ pandora.ui.textEmbed = function() {
|
||||||
pandora.user.ui.embedSize = data.size;
|
pandora.user.ui.embedSize = data.size;
|
||||||
pandora.$ui.text.update();
|
pandora.$ui.text.update();
|
||||||
},
|
},
|
||||||
resizeend: function() {
|
resizeend: function(data) {
|
||||||
$iframe.attr('src') && $overlay.hide();
|
$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});
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue