[view] fix layout not compatible with 2.3