paper-slider icon indicating copy to clipboard operation
paper-slider copied to clipboard

Slider bar renders at inconsistent heights

Open mjenkins-inscopix opened this issue 8 years ago • 3 comments

Description

After setting --paper-slider-height: 2px; the element sometimes renders as 2px tall, and other times as 3px tall. It is reproducible with different pixel values.

Expected outcome

All the sliders would be the same height.

Actual outcome

They are not the same height.

Steps to reproduce

  1. Put multiple paper-slider elements in the page.
  2. Set --paper-slider-height: 2px;
  3. Observe the actual heights of the sliders.

Browsers Affected

  • [X] Chrome capture

mjenkins-inscopix avatar Feb 15 '17 18:02 mjenkins-inscopix

Hi @mjenkins-inscopix

The default height is already 2px. Are you seeing this on the demo page (https://elements.polymer-project.org/bower_components/paper-slider/demo/)? Can you be more specific on what platform (OS? Retina/Hi-DPI display?)?

keanulee avatar Feb 21 '17 18:02 keanulee

Hi @keanulee!

The 2px was just an example number - I can reproduce this problem in my browser at varying pixel heights. I'm using a Windows 7 computer at 1920x1080, normal pixel density screens. I am also seeing it on the demo page. I've attached a screenshot.

capture

mjenkins-inscopix avatar Feb 23 '17 16:02 mjenkins-inscopix

I can't seem to replicate this on Chrome in my Win 10 VM. I don't think that this is anything paper-slider-specific since we are just creating a 2px high div. It be interesting if you can reproduce this behavior with just normal elements.

keanulee avatar Feb 28 '17 18:02 keanulee