Sigma Php Ajax framework, Ajax Components, GUI Builder
May 24, 2012, 11:52:16 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Visibility property and children  (Read 541 times)
dman65
Jr. Member
**
Posts: 6


View Profile
« on: October 29, 2009, 01:37:12 PM »

Is there a reference any where as to how the visibility property propagates?

I am trying to build an interface where there is a Stack on the left of the screen and a button under each stack element to open a process in the right hand of the screen.

When someone makes a selection on the Stack I want to activate a block on the right hand side of the screen that corresponds to that stack and then when someone clicks on a button under that stack it activates a block within that stack block.

When a stack is clicked, I set the stack level block visibility for all of the blocks except the selected one to 'hidden'. The problem I am finding, is that even though I set the stack level block to hidden, the child that was activated by the button is still visible.

Is that correct operation? If so, do any of the container objects make their children 'hidden' when the parent becomes 'hidden'?

Logged
linb
Administrator
Hero Member
*****
Posts: 435


View Profile
« Reply #1 on: October 29, 2009, 05:25:53 PM »

Yes, CSS acts like that.

You should use 'setDisplay' <'none', 'block'> to deal with that, not 'setVisibility'.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!