From d134f59e914f9d43483ee6eaf1ee32a6778ac3fb Mon Sep 17 00:00:00 2001 From: Florian Loitsch Date: Tue, 10 Dec 2024 15:32:27 +0100 Subject: [PATCH] Update src/element.toit Co-authored-by: Kasper Lund --- src/element.toit | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/element.toit b/src/element.toit index b2c5e7b..fd6ec53 100644 --- a/src/element.toit +++ b/src/element.toit @@ -277,11 +277,10 @@ class Div extends Element: child-invalidated x/int y/int w/int h/int --clip/bool=false -> none: if clip: super x y w h - else: - if change-tracker: - x2 := x_ + x - y2 := y_ + y - change-tracker.child-invalidated x2 y2 w h + else if change-tracker: + x2 := x_ + x + y2 := y_ + y + change-tracker.child-invalidated x2 y2 w h w -> int?: return w_ h -> int?: return h_