ProgressNS / nativescript-ui-feedback

This repository is used for customer feedback regarding Telerik UI for NativeScript. The issues system here is used by customers who want to submit their feature requests or vote for existing ones.
Other
115 stars 21 forks source link

RadDataForm: Switch LabelWidth not working #787

Open dar097 opened 6 years ago

dar097 commented 6 years ago

Did you verify this is a real problem by searching the NativeScript Forum? No

Tell us about the problem

Setting LabelWidth for a Switch Editor does not effect it

Which platform(s) does your issue occur on?

Android

Please tell us how to recreate the issue in as much detail as possible.

  1. Create a Form with a Switch Editor
  2. Set LabelWidth for Switch Editor via TypeScript.

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

form.getPropertyByName('switch_name').editor.propertyEditorStyle.labelWidth = 150;

This image shows the LayoutBorders. The Label and Switch are taking 50% width each no matter the label width given. image

tsonevn commented 6 years ago

Hi @dar097, I tested this case, and it seems that there is an issue with setting up the labelWidth to the editor of type switch. I will mark this as a bug, and we will investigate further the problem