Add logic to suppress scroll bars during resizing.