marcj / css-element-queries

CSS Element-Queries aka Container Queries. High-speed element dimension/media queries in valid css.
http://marcj.github.io/css-element-queries/
MIT License
4.27k stars 487 forks source link

resize-sensor wider than the view port #232

Closed sag1v closed 5 years ago

sag1v commented 6 years ago

Hi, I've encountered a situation where the .resize-sensor element is wider than the view port thus enforcing a horizontal scroll-bar.
My fix was to just add the rule:

.resize-sensor{
  max-width:  100%;
}

Maybe this should be added to the source code.

marcj commented 5 years ago

Oh, well, yeah it definitely should. Care to provide a PR?

sag1v commented 5 years ago

@marcj done #238