Changes between Initial Version and Version 2 of Ticket #9229


Ignore:
Timestamp:
May 9, 2009, 10:51:24 AM (11 years ago)
Author:
bill
Comment:

Why do you want the TabContainer to know when the window changes size?

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9229

    • Property Cc Adam Peller added
  • Ticket #9229 – Description

    initial v2  
    11The problem is in the startup() method of_LayoutWidget. If the layout widget has a parent, it does not register for resize events from the browser and assumes it will get notified about resizes from its parent container. But consider the nesting:
    2 
     2{{{
    33BorderContainer
    44- ContentPane (in border container center region)
     
    66-- TabContainer
    77-- <bunch of stuff>
    8 
    9 In other words, assume the ContentPane is serving as the container for a whole other set of widgets loaded via href. In this case, the TabContainer sees it has a parent so it does not dojo.connect to onresize. The ContentPane, however, does not think it has a single child, so it doesn't bother to notify the TabContainer when the window resizes.
     8}}}
     9In other words, assume the !ContentPane is serving as the container for a whole other set of widgets loaded via href. In this case, the !TabContainer sees it has a parent so it does not dojo.connect to onresize. The !ContentPane, however, does not think it has a single child, so it doesn't bother to notify the !TabContainer when the window resizes.
    1010
    1111This was not a problem in Dojo 1.2.x.