      */  
     public function HGroup():void
     {
-        super(new HorizontalLayout());
+        super();
+        super.layout = new HorizontalLayout();
     }
     
     private function get horizontalLayout():HorizontalLayout

    public function get lastIndexInView():int
    {
        return horizontalLayout.lastIndexInView;
    } 
    
    //--------------------------------------------------------------------------
    //

package spark.components
{
import flash.events.Event;
import spark.layout.HorizontalLayout;
import spark.layout.supportClasses.LayoutBase;

[IconFile("HGroup.png")]

