angular-card
angular-card copied to clipboard
There is no way to not to specify width
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. https://github.com/jessepollak/card/issues/262 workaround would be to skip width definition at all, but it doesn't seem to be possible with angular-card