[ 2 posts ]

Marc

YUI Contributor

  • Offline
  • Profile
Tags:

node.show()

Post Posted: Sat Nov 12, 2011 2:30 pm
+0-
Hi,

when I call node.show() it ends up executing node.setStyle('display','');
Is this supposed to be overriden? I would expect setStyle('display','block')

Marc

Satyam

YUI Contributor

  • Username: Satyam
  • Joined: Tue Dec 09, 2008 12:34 am
  • Posts: 2016
  • Location: Sitges, Spain
  • GitHub: Satyam
  • Gists: Satyam
  • IRC: DevaSatyam
  • YUI Developer
  • Offline
  • Profile

Re: node.show()

Post Posted: Sat Nov 12, 2011 10:42 pm
+1-
The html element must have had a display setting from a CSS file, either itself or inherited, which might be inline, inline-block or whatever. Setting the display style to none overrides this, setting it back to nothing lets the original one resurface.
  [ 2 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum