Adaptation to the resized graphics.