#smart_layout: refined the style
#smart_layout: fixed improper container positioning after switching from scrolled vertical layout