fix internal pointers for window resize handler in review code
parent
92f085f561
commit
fb1f22b248
|
@ -34,8 +34,8 @@ $(document).ready(function () {
|
||||||
// handle window resize
|
// handle window resize
|
||||||
var resizeHandler = function () {
|
var resizeHandler = function () {
|
||||||
self.element.css({
|
self.element.css({
|
||||||
'top': (window.innerHeight - dialog.height()) / 3,
|
'top': (window.innerHeight - self.element.height()) / 3,
|
||||||
'left': (window.innerWidth - dialog.width()) / 2
|
'left': (window.innerWidth - self.element.width()) / 2
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue