Author:   Lars Michelsen <[email protected]>
Date:     Sun Nov 24 16:27:51 2013 +0100
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Sun Nov 24 16:27:51 2013 +0100

recognizing sidebar during zoom=fill

---

 share/frontend/nagvis-js/js/frontend.js |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/share/frontend/nagvis-js/js/frontend.js 
b/share/frontend/nagvis-js/js/frontend.js
index a9663bb..f0e2801 100644
--- a/share/frontend/nagvis-js/js/frontend.js
+++ b/share/frontend/nagvis-js/js/frontend.js
@@ -1499,10 +1499,9 @@ function set_fill_zoom_factor() {
                 c_right = o_right;
         }
     }
-
     var border = 40; // border per side in px * 2
     var zoom_y = parseInt((pageHeight() - border - getHeaderHeight()) / 
parseFloat(c_bottom) * 100);
-    var zoom_x = parseInt((pageWidth() - border)/ parseFloat(c_right) * 100);
+    var zoom_x = parseInt((pageWidth() - border - getSidebarWidth())/ 
parseFloat(c_right) * 100);
     set_zoom(Math.min(zoom_y, zoom_x));
 }
 


------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to