y canvas resets offsets when tree changes