Force a scrollbar update when adding a visible line widget

Issue #2282