Make the scroll update in addLineWidget synchronous