make sure dialog stays on screen after size reset

This commit is contained in:
Rolux 2010-02-21 14:28:41 +05:30
parent 6bde6d53d7
commit 0345cb2320

View File

@ -1363,8 +1363,11 @@ requires
}
function reset() {
that.width(self.options.width);
that.height(self.options.height);
that.css({
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);
}