Skip to content

There is no way to not to specify width #21

@aldarund

Description

@aldarund

Basically in js card library you can skip specification of width. Like its done on demo page
https://jessepollak.github.io/card/
var card = new Card({ form: '.active form', container: '.card-wrapper' })
this way width wont be set at all.
But in angular-card its always set to either data-width or 350 and there no way to dont specify it at all.
https://github.com/gavruk/angular-card/blob/master/src/card.js#L51

Why its needed? Because in card library there a logic for scaling if width is set, and it appears that its broken e.g. on mobile devices it increase size of card instead of decreasing it.
jessepollak/card#262
workaround would be to skip width definition at all, but it doesn't seem to be possible with angular-card

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions