make sure dialog stays on screen after size reset

This commit is contained in:
Rolux 2010-02-21 14:28:41 +05:30
parent 444fabdb39
commit 240c13278f

View file

@ -1363,8 +1363,11 @@ requires
} }
function reset() { function reset() {
that.width(self.options.width); that.css({
that.height(self.options.height); left: Math.max(that.offset().left, 24 - self.options.width)
})
.width(self.options.width)
.height(self.options.height);
that.$content.height(self.options.height - 80); that.$content.height(self.options.height - 80);
} }