Skip to content

Commit

Permalink
When an element has its own style, apply it.
Browse files Browse the repository at this point in the history
Previously this only happened if there was also a
global style.
  • Loading branch information
Erik Corry committed Dec 14, 2023
1 parent 8bb623f commit 4627b7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/element.toit
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ abstract class Element implements Window:
if children: children.do: | child/Element |
child.change-tracker = this

if style: set-styles [style]

static HASH-CODE-COUNTER_ := 0
static generate-hash-code_ -> int:
HASH-CODE-COUNTER_ += 13
Expand Down

0 comments on commit 4627b7d

Please sign in to comment.