#NEWLINE# def insert( self , widget , beforeIndex = None ) : #NEWLINE# #INDENT# if ( ( beforeIndex < 0 ) or ( beforeIndex > self . getWidgetCount ( ) ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# ComplexPanel . insert ( beforeIndex , widget , self . getElement ( ) , beforeIndex ) #NEWLINE# child = widget . getElement ( ) #NEWLINE# DOM . setStyleAttribute ( child , 'width' , '100%' ) #NEWLINE# DOM . setStyleAttribute ( child , 'height' , '100%' ) #NEWLINE# widget . setVisible ( False )