Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't style the text color of select box under Android 7 (emulator) #56

Closed
ickata opened this issue Dec 19, 2016 · 2 comments
Closed

Can't style the text color of select box under Android 7 (emulator) #56

ickata opened this issue Dec 19, 2016 · 2 comments
Labels

Comments

@ickata
Copy link

ickata commented Dec 19, 2016

Hi,

I'm not able to set the text color of the main select box under Android 7 (testing on emulator). I get this:
http://2.1m.yt/ZZ6F4Nx.png

Drop-down items apply the style:
http://1.1m.yt/Z8OsTAh.png

The select box is well styled under iOS:
http://4.1m.yt/NgtUBE.png

My code:

View:

<Page xmlns="http://www.nativescript.org/tns.xsd" xmlns:dd="nativescript-drop-down" loaded="onload">
   <GridLayout class="padding" rows="auto, auto, auto, auto, auto, auto, auto, auto, auto" columns="auto, *">
      <!-- some other UI components here... -->
      <dd:DropDown items="{{ peoplecount }}" selectedIndex="{{ numpeople }}" selectedIndexChanged="changePeopleCount" horizontalAlignment="right" row="3" col="1" />
      <!-- some other UI components here... -->
   </GridLayout>
</Page>

CSS:

DropDown {
   width: 60;
   height: 40;
   margin-bottom: 4;
   color: #333;
   background-color: #eee;
   border-color: #eee;
   border-width: 1;
   border-radius: 5;
   text-align: center;
}

Environment:

$ node --version
v6.9.1
$ tns --version
2.4.2
@PeterStaev PeterStaev added the bug label Dec 20, 2016
@PeterStaev
Copy link
Owner

Hey @ickata , this seems to be related to some default padding being added to the view. As a temporary fix you can add padding: 0 (or whatever value suits your layout) to your CSS.

@ickata
Copy link
Author

ickata commented Dec 20, 2016

@PeterStaev , thank you for the quick response! padding: 6 0 0; did it.

@ickata ickata closed this as completed Dec 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants