Giter Club home page Giter Club logo

Comments (6)

bradmartin avatar bradmartin commented on May 18, 2024

Possibly 😄 I don't see a radius on the CardView, only elevation, margin, and a class and don't see the details of the CSS class here 😄. Also, you should put quotes around the property values so the parser doesn't have any trip ups. Looks like you're missing quotes around the margin and elevation on the CardView.

from nativescript-cardview.

fadiallos avatar fadiallos commented on May 18, 2024

Sorry probably a bad picture to send to show what I mean.

Class={{item.brand}} puts a background image on the grid. It seems that this image stops the cardview from applying its radius. Not sure why.
The way i got around this was to apply a radius on the gridlayout.
Is there a conflict between radius on cardview and background image on child gridlayout?

Thanks for the quotation tip. I get lazy at times. I'll change them.

from nativescript-cardview.

bradmartin avatar bradmartin commented on May 18, 2024

Yea, as far as I know, radius still works on the cardview so you might have some conflict with the current layout you have. Also, another tip, you don't need the parent StackLayout on the cardview 👍 - it's a layout itself so you shouldn't need it in this case (from your image).

from nativescript-cardview.

fadiallos avatar fadiallos commented on May 18, 2024

Tried removing stacklayout yesterday with unfavourable results. Will have another look at doing it tonight. Without stacklayout it simply presently the last item on the page.

from nativescript-cardview.

bradmartin avatar bradmartin commented on May 18, 2024

sometimes, depending on the platform you might need to be explicit with height/width for it to work perfectly, but cardview extends the ContentView class which gives it layout container behavior. So yea it'll depend on what you're after but if you can dump that parent, then of course, that's a good thing. Not gonna be a huge deal breaker for what you seem to be trying to do though 😄

from nativescript-cardview.

bradmartin avatar bradmartin commented on May 18, 2024

Confirmed radius works, updated demo. Please check the demo if you need to see it in action. Thanks 😄

from nativescript-cardview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.