Skip to content

Commit

Permalink
Update src/element.toit
Browse files Browse the repository at this point in the history
Co-authored-by: Kasper Lund <[email protected]>
  • Loading branch information
floitsch and kasperl authored Dec 10, 2024
1 parent 652d435 commit d134f59
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/element.toit
Original file line number Diff line number Diff line change
Expand Up @@ -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_
Expand Down

0 comments on commit d134f59

Please sign in to comment.