When I duplicate my component which has an AutoWidth output property where the right width for the Button is calculated, the new instance of the component has an error. The Errors which are shown are the following:
Unexpected Character. The Formula contains „Error“, but „ParenClose“ is expected.
Unexpected Character. Characters are not used as expected in the formula.
Invalid number of arguments Received: 1, expected 2 or more.
(translated)
The AutoWidth formula is the following:
If(
Self.ShowLabel;
If(
Self.IsOutlineVariant Or Self.Disabled;
2 + DS_Button_Icon.Width + DS_Button_Text.Width + Self.LayoutGap + Self.PaddingLeft + Self.PaddingRight;
Self.Height;
DS_Button_Icon.Width + DS_Button_Text.Width + Self.LayoutGap + Self.PaddingLeft + Self.PaddingRight;
Self.Height
)
)This formula works perfect when I insert the component as usual, but as soon as I copy and paste the component, there are the errors listed above.
When the component has set its Width to Self.AutoWidth as initial Value, the component won't show up in the App and has several Errors again, can't be resized and when trying to resize the Button, you can't move anything inside the App and you have to reload the page.

Report
All responses (
Answers (