some fixes for the buffer to be reallocated if the window size is <> 50 pixels from the buffer. Also the dependant canvas classes reallocate gc's if needed.