mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Merge pull request #753 from madhawap/master
Fixes android sense statistic graph issue
This commit is contained in:
commit
581972b4c0
@ -75,6 +75,7 @@ var rotation_yData = [];
|
|||||||
var rotation_zData = [];
|
var rotation_zData = [];
|
||||||
|
|
||||||
var graphMap = {};
|
var graphMap = {};
|
||||||
|
var graphSettingsMap = {};
|
||||||
|
|
||||||
var palette = new Rickshaw.Color.Palette({scheme: "munin"});
|
var palette = new Rickshaw.Color.Palette({scheme: "munin"});
|
||||||
|
|
||||||
@ -318,6 +319,7 @@ function disconnect() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function maximizeGraph(graph, width,height){
|
function maximizeGraph(graph, width,height){
|
||||||
|
graphSettingsMap[graph.element.id] = {'width': graph.width, 'height': graph.height};
|
||||||
graph.configure({
|
graph.configure({
|
||||||
width: width*2,
|
width: width*2,
|
||||||
height: height*2
|
height: height*2
|
||||||
@ -327,9 +329,10 @@ function maximizeGraph(graph, width,height){
|
|||||||
}
|
}
|
||||||
|
|
||||||
function minimizeGraph(graph){
|
function minimizeGraph(graph){
|
||||||
|
var graphSettings = graphSettingsMap[graph.element.id];
|
||||||
graph.configure({
|
graph.configure({
|
||||||
width: 366,
|
width: graphSettings.width,
|
||||||
height: 300
|
height: graphSettings.height
|
||||||
});
|
});
|
||||||
graph.update();
|
graph.update();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user