Fix rendering when AutoSizing is enabled.