mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
[Console] Fixed the graph popup size in Firefox
This commit is contained in:
parent
279a864d82
commit
dc579f6bbe
@ -504,9 +504,9 @@ ui_include_time_picker(true);
|
|||||||
var show_overview = false;
|
var show_overview = false;
|
||||||
var height_window;
|
var height_window;
|
||||||
var width_window;
|
var width_window;
|
||||||
$(document).ready(function() {
|
$(window).ready(function() {
|
||||||
height_window = $(window).height();
|
height_window = window.innerHeight;
|
||||||
width_window = $(window).width();
|
width_window = window.innerWidth;
|
||||||
});
|
});
|
||||||
|
|
||||||
$("*").filter(function() {
|
$("*").filter(function() {
|
||||||
@ -516,13 +516,12 @@ ui_include_time_picker(true);
|
|||||||
return false;
|
return false;
|
||||||
}).click(function() {
|
}).click(function() {
|
||||||
if (show_overview) {
|
if (show_overview) {
|
||||||
window.resizeTo(width_window + 25, height_window);
|
window.resizeTo(width_window, height_window);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
window.resizeTo(width_window + 25, height_window + 120);
|
window.resizeTo(width_window, height_window + 150);
|
||||||
}
|
}
|
||||||
show_overview = !show_overview;
|
show_overview = !show_overview;
|
||||||
|
|
||||||
});
|
});
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user