From 8d8b591ac769ca6df11ebbc9fbb7c5f7e073efaa Mon Sep 17 00:00:00 2001 From: VanjaPin Date: Tue, 13 Aug 2024 10:52:46 +0300 Subject: [PATCH] fix(sublabel-size) : prevent creating nested array for sublabel size array --- src/source/view/controls/Button.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/source/view/controls/Button.bs b/src/source/view/controls/Button.bs index eb6197fa..5b449b86 100644 --- a/src/source/view/controls/Button.bs +++ b/src/source/view/controls/Button.bs @@ -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"