question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

itemWidth and offset in relative units

See original GitHub issue

Issuehunt badges

Is your feature request related to a problem? Please describe. I would like to use responsive units (em and rem) for both offset and itemWidth but am unable to due to the restraint of the number prop type and the assignment to px.

Describe the solution you’d like It’d be nice if these props were refactored to accept either a number or string - if string, don’t append the px, if number, do.

Describe alternatives you’ve considered N/A

Additional context N/A


IssueHunt Summary

Backers (Total: $0.00)

Become a backer now!

Or submit a pull request to get the deposits!

Tips

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
katiawheelercommented, Feb 25, 2020

@piotr-s-brainhub My assumption is theoretical. I tested it on the deployed gh-pages with a scenario similar to ours and it seemed to do the job!

1reaction
piotr-s-brainhubcommented, Feb 7, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

brainhubeu/ react-carousel: itemWidth and offset in relative units. #191
itemWidth and offset in relative units #191 ... I would like to use responsive units ( em and rem ) for both offset...
Read more >
Controlling ratios of flex items along the main axis - CSS
In this guide we will be exploring the three properties that are applied to flex items, which enable us to control the size...
Read more >
Offset (NASA WorldWind)
Defines the relationship of an image, label or other screen-space item relative to another screen-space item. An offset contains an X coordinate, ...
Read more >
CSS Values and Units Module Level 3 - W3C
This CSS3 module describes the various values and units that CSS ... Font-relative lengths: the ' em ', ' ex ', ' ch...
Read more >
Offset (NASA World Wind)
PIXELS , which indicates pixel units relative to the lower left corner of the ... units are fractions of the screen-space item's width...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found