Fixed #5704: fixed a bug of ccui.Layout

fixed a bug of ccui.Layout