nstudio / nativescript-cardview

:diamonds: :clubs: NativeScript widget for Material Design CardView
MIT License
282 stars 51 forks source link

iOS Issue: No border box and show wrongly applied #118

Open maxlam79 opened 4 years ago

maxlam79 commented 4 years ago

Hi, just found out that the plugin doesn't apply well on iOS (Emulator iOS 13.4). All settings are left default. However, the border is not visible, and the shadow effects are applied on the elements within the "CardView" instead of around the the box. Android is working well though.

maxlam79 commented 4 years ago

I have discovered a strange way to make this work...happens on iOS. Some how, I have to have an extra CSS class with the border properties defined like:

.mycard { border-width: 1; border-color: #808080; }

and have it in:

<CardView class="mycard">...</CardView>

then it worked.

Without the border attributes, it doesn't.

bradmartin commented 4 years ago

thanks for the workaround, not really sure what could have changed since this plugin hasn't been updated so must be some change with NS core or iOS APIs. Can you check other iOS versions on the simulators to see if behavior is similar to help narrow down what caused this?

maxlam79 commented 4 years ago

Much apologies. The iOS simulator which I (Version 11.4.1 (921.9)) only has iOS 13.4 for all devices. Can't downgrade to other iOS version.