The resizing sometimes wouldn't work as expected because resize was being called at different times with different values, and not always the most recent would win. By implementing a short delay, and ensuring that previous calls to resize() are cancelled, the resizing can be done more reliably.
The resizing sometimes wouldn't work as expected because
resize
was being called at different times with different values, and not always the most recent would win. By implementing a short delay, and ensuring that previous calls toresize()
are cancelled, the resizing can be done more reliably.