Skip to content

Using percentage values for widgetDimensions or widgetDimensions makes widgets display vertically #3

@christofferaakre

Description

@christofferaakre

In the docs, all the examples use pixels for widgetDimensions and widgetDimension. I am using this library, and liking it alot, but now I need to set the size of the stars according to the width of their container. I tried doing something like this:
<Ratings rating={this.state.rating} widgetDimensions='20%'>
[<Ratings.Widget here]
.

This causes the widgets to line up (not quite) vertically as opposed to horizontally. I believe this is not intended functionality.

Attached is a screenshot of the issue.
image

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