Be careful when the size of children content depends on overflow state. The following code perhaps causes the infinite loop of changing overflow state.