Add threshold to auto scroll
Reorder property initialization in FramelessDialog