Fix #2072 (only resize a tab if the size changed since the last display)