Compute the required height for the control, and therefore whether it will have a vertical scrollbar, using a method that will not overflow if the required height exceeds 32768 (2**15).
Also change guard condition to isClientAreaChanged rather than isRectangleChanged—changes to edge styles should cause a re-layout, while simple moves don't need to.
Compute the required height for the control, and therefore whether it will have a vertical scrollbar, using a method that will not overflow if the required height exceeds 32768 (2**15). Also change guard condition to isClientAreaChanged rather than isRectangleChanged—changes to edge styles should cause a re-layout, while simple moves don't need to.