fix the bug in the framework main container resize