dynamic width for scroll pane