1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 22:35:23 +03:00

stop the dialog from jumping vertically

This commit is contained in:
cTn 2014-11-25 20:49:43 +01:00
parent fb1f22b248
commit 2eb6c0b691

View file

@ -19,7 +19,7 @@ $(document).ready(function () {
this.element = $('<div />').prop('id', 'dialog').addClass(identifier).load(content, function () {
// position the dialog
self.element.css({
'top': (window.innerHeight - self.element.height()) / 3,
'top': window.innerHeight / 3,
'left': (window.innerWidth - self.element.width()) / 2
});
@ -34,7 +34,7 @@ $(document).ready(function () {
// handle window resize
var resizeHandler = function () {
self.element.css({
'top': (window.innerHeight - self.element.height()) / 3,
'top': window.innerHeight / 3,
'left': (window.innerWidth - self.element.width()) / 2
});
};