Fixed #5781: fixed a bug of ccui.Layout

Fixed a bug of ccui.Layout