Support vertical display mode for small width elements