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
SearchBar rendering defect on iOS #4319
Comments
@sserdyuk These lines comes with the default styling applied via UISearchBarStyle. The top and bottom lines can not be removed via CSS, however, you can implement a native solution to change the default search bar style and apply UISearchBarStyleMinimal e.g.
using the loaded event for the Searchbar component
Full sample project here |
For the record, setting style to "minimal" makes the search bar semi-transparent, so I lost and was unable to set the white background on the bar. The following did the trick:
|
Sorry for bumping such an old thread, but I'm having an issue implementing @sserdyuk's solution to remove the default search bar borders; as he pointed out, UISearchBarStyle.Minimal makes the search bar semi-transparent, but for me, UISearchBarStyle.Prominent doesn't affect the search bar. I've also tried looking into changing the background color of the search bar to be transparent using RGBA values, but that didn't work either. Are there any other ways to remove the borders? EDIT: I'm using Angular with this project, I'm not sure if that would affect anything though. |
@lin-brian-l in order to remove the lines when using UISearchBarStyle.Prominent try:
|
@gummibjorn Sorry for the delayed response - thanks for the help, the issue ended up being that I didn't nest my |
Someone had requested that I post my solution, here's what I did. HTML:
.ts:
|
How this gonna look for VueJS? |
@n19htz sorry, I've never used Vue before. |
If you're using Nativescript-Vue here is the solution:
|
When I styled background on SearchBar to avoid default grey background fill, it started rendering two thin lines above and under. Setting background-color triggers the issue. I am seeing this issue across all devices in the emulator.
main-page.xml
main-page.ts
app.css
The text was updated successfully, but these errors were encountered: