Skip to content

Commit

Permalink
fix(sublabel-size) : prevent creating nested array for sublabel size …
Browse files Browse the repository at this point in the history
…array
  • Loading branch information
VanjaPin committed Aug 13, 2024
1 parent 8858fe0 commit 8d8b591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/source/view/controls/Button.bs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ namespace mv.controls
else if iconPosition = "left"
labelSize[0] = mc.clamp(w - (labelTranslation[0] * 2) - iconSize[0], 0, w)
subTextLabelSize[0] = mc.clamp(w - (subTextLabelTranslation[0] * 2), 0, w)
subTextLabelSize[0] = [iconTranslation[0] + iconSize[0], subTextLabelSize[1]]
subTextLabelSize = [iconTranslation[0] + iconSize[0], subTextLabelSize[1]]
labelTranslation = [iconTranslation[0] + labelTranslation[0] + iconSize[0], labelTranslation[1]]

else if iconPosition = "right"
Expand Down

0 comments on commit 8d8b591

Please sign in to comment.