[Nagvis-checkins] SF.net Git: nagvis: Bugfix: Fixed zoom for labels in chrome
Brought to you by:
larsi-
From: lars <la...@us...> - 2012-07-19 07:03:57
|
Author: Lars Michelsen <lm...@la...> Date: Thu Jul 19 09:03:12 2012 +0200 Committer: Lars Michelsen <lm...@la...> Commit-Date: Thu Jul 19 09:03:12 2012 +0200 Bugfix: Fixed zoom for labels in chrome --- .../frontend/nagvis-js/js/NagVisStatefulObject.js | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/share/frontend/nagvis-js/js/NagVisStatefulObject.js b/share/frontend/nagvis-js/js/NagVisStatefulObject.js index 8a428ec..8c393e2 100644 --- a/share/frontend/nagvis-js/js/NagVisStatefulObject.js +++ b/share/frontend/nagvis-js/js/NagVisStatefulObject.js @@ -219,20 +219,21 @@ var NagVisStatefulObject = NagVisObject.extend({ break; } - // Parse label when configured - if(this.conf.label_show && this.conf.label_show == '1') { - this.parseLabel(oContainerDiv); - } - // Append child to map and save reference in parsedObject var oMap = doc.getElementById('map'); if(oMap) { this.parsedObject = oMap.appendChild(oContainerDiv); oMap = null; } - oContainerDiv = null; doc = null; + // Parse label when configured + if(this.conf.label_show && this.conf.label_show == '1') { + this.parseLabel(oContainerDiv); + } + + oContainerDiv = null; + // Now really draw the line when this is one if(this.conf.view_type && this.conf.view_type == 'line') this.drawLine(); |