Bug when trying to hide SVG elements fixed
authorlaurent
Sun, 29 Nov 2009 16:32:52 +0100
changeset 438 6d73b097efb5
parent 437 26ec1444e351
child 439 aa7266534461
Bug when trying to hide SVG elements fixed
plugins/python/modules/svgui/svguilib.py
--- a/plugins/python/modules/svgui/svguilib.py	Sun Nov 29 16:31:14 2009 +0100
+++ b/plugins/python/modules/svgui/svguilib.py	Sun Nov 29 16:32:52 2009 +0100
@@ -38,12 +38,12 @@
     # method to display the current state of interface
     def updateElements(self):
         if self.up:
-            self.sele_elt.setAttribute("visibility", "hidden")
-            self.back_elt.setAttribute("visibility", "visible")
+            self.sele_elt.setAttribute("display", "none")
+            self.back_elt.removeAttribute("display")
         else:
-            self.sele_elt.setAttribute("visibility", "visible")
-            self.back_elt.setAttribute("visibility", "hidden")
-        
+            self.sele_elt.removeAttribute("display")
+            self.back_elt.setAttribute("display", "none")
+            
     def updateValues(self, values):
         if values.state != self.state:
             self.state = values.state