Author: Lars Michelsen <[email protected]>
Date: Sat Jul 13 20:07:31 2013 +0200
Committer: Lars Michelsen <[email protected]>
Commit-Date: Sat Jul 13 20:07:31 2013 +0200
FIX: Fixed centering of overview tables when opening the sidebar
---
ChangeLog | 1 +
share/userfiles/templates/default.header.js | 14 +++++++++++---
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index a9c8089..0e86bb3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -19,6 +19,7 @@ Frontend:
is stored for each user individually.
* Changed map rendering on overview from a single bulk request to one
request per map.
+ * FIX: Fixed centering of overview tables when opening the sidebar
1.7.10
Frontend:
diff --git a/share/userfiles/templates/default.header.js
b/share/userfiles/templates/default.header.js
index d9c4066..d4cca46 100644
--- a/share/userfiles/templates/default.header.js
+++ b/share/userfiles/templates/default.header.js
@@ -118,8 +118,12 @@ function ddMenu(id, d, reposition){
function toggleSidebar(store) {
var sidebar = document.getElementById('sidebar');
var content = document.getElementById('map');
- if(content == null)
+ var is_overview = false;
+ if(content == null) {
content = document.getElementById('overview');
+ is_overview = true;
+ }
+
// If there is still no content don't execute the main code. So the sidebar
// will not be available in undefined views like the WUI
if(content == null)
@@ -128,11 +132,15 @@ function toggleSidebar(store) {
var state = 1;
if(sidebarOpen()) {
sidebar.style.display = 'none';
- content.style.left = '0';
+ if(is_overview === false) {
+ content.style.left = '0';
+ }
state = 0;
} else {
sidebar.style.display = 'inline';
- content.style.left = '200px';
+ if(is_overview === false) {
+ content.style.left = '200px';
+ }
}
if(store === true)
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins