don't let view-pane exceed width set by JS