Select to view content in your preferred language

How do I change the z-index or depth of widgets?

392
2
01-18-2011 04:39 AM
DanielBraun1
Emerging Contributor
I would like my vertically stacked widgets to scroll under the HeaderController. How do I achieve this?
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Dan,

   This is a simple one line change if I remember everything I did to achieve this.

In the WidgetManager.mxml make the commented change below:

            private function startLoadControls():void
            {
                controlContainer = new Group();
                controlContainer.percentHeight = 100;
                controlContainer.percentWidth = 100;
//My Add
    controlContainer.depth = 1000;
//End My Add
                this.addElementAt(controlContainer, 0);

                var controls:Array = configData.controls;
                if (controls)
                {
                    for (var i:uint = 0; i < controls.length; i++)
                    {
                        controllerList.push(controls);
                    }
                }
                this.cursorManager.setBusyCursor();
                loadNextControl();
            }
0 Kudos
DanielBraun1
Emerging Contributor
That worked! Thank you.
0 Kudos