Handle height/width in CommonViewer.