Changeset 14166

Show
Ignore:
Timestamp:
06/26/08 11:06:59 (7 months ago)
Author:
toonetown
Message:

Refs: #7602 - if the menu is not yet started, the popup is not there yet

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dojox/trunk/widget/PlaceholderMenuItem.js

    r14165 r14166  
    9191                        if(child._isPlaceholder && (!label || child.label == label)){ 
    9292                                r.push(child);  
    93                         }else if(child.popup && child.popup.getPlaceholders){ 
     93                        }else if(child._started && child.popup && child.popup.getPlaceholders){ 
    9494                                r = r.concat(child.popup.getPlaceholders(label)); 
     95                        }else if(!child._started && child.dropDownContainer){ 
     96                                var node = dojo.query("[widgetId]", child.dropDownContainer)[0]; 
     97                                var menu = dijit.byNode(node); 
     98                                if(menu.getPlaceholders){ 
     99                                        r = r.concat(menu.getPlaceholders(label)); 
     100                                } 
    95101                        } 
    96102                }, this);