fix a bug in text panel resize handler

This commit is contained in:
rolux 2013-02-22 10:13:26 +05:30
parent 1f5735e6a4
commit 2732638a9f

View file

@ -324,14 +324,14 @@ pandora.ui.textEmbed = function() {
var that = Ox.Element() var that = Ox.Element()
.bindEvent({ .bindEvent({
resizestart: function() { resizestart: function() {
url && $overlay.show(); $iframe.attr('src') && $overlay.show();
}, },
resize: function(data) { resize: function(data) {
pandora.user.ui.embedSize = data.size; pandora.user.ui.embedSize = data.size;
pandora.$ui.text.update(); pandora.$ui.text.update();
}, },
resizeend: function() { resizeend: function() {
url && $overlay.hide(); $iframe.attr('src') && $overlay.hide();
} }
}), }),