mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
stop the dialog from jumping vertically
This commit is contained in:
parent
fb1f22b248
commit
2eb6c0b691
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue