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

The padding applied to AutoComplete is not correct #1234

Closed tgpetrov closed 5 years ago

tgpetrov commented 5 years ago

Please, provide the details below:

Tell us about the problem

The padding applied to RadAutoComplete through CSS is applied on top of the defaults instead of changing them. This makes it impossible to remove the default padding.

Which platform(s) does your issue occur on?

Both

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

  1. To reproduce, in autocomplete-getting-started-page.xml in the demo app, change this line:

    <au:RadAutoCompleteTextView id="autocomplete" items="{{ dataItems }}" displayMode="Tokens"/>

    with:

    <GridLayout columns="*,*">
        <StackLayout>
                <TextField style="padding: 16; background: green" />
        </StackLayout>
        <StackLayout column="1">
                <au:RadAutoCompleteTextView items="{{ dataItems }}" style="padding: 16; background: red"/>
        </StackLayout>
    </GridLayout>
  2. Run the app and type some text in both fields. Observe the difference between the two: image

  3. The expected behavior is that they look the same, since they both have padding 16: image

zbranzov commented 5 years ago

Released in nativescript-ui-autocomplete@5.1.1