Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layout appearance issue - a small line displayed in the path #77

Closed
fermedina opened this issue Dec 27, 2017 · 3 comments
Closed

Layout appearance issue - a small line displayed in the path #77

fermedina opened this issue Dec 27, 2017 · 3 comments

Comments

@fermedina
Copy link

Hi. I'm developing an application with Ionic 3. When the value is less than half a small line appear after handler.

You can see a screenshot here. I don't know why that happens. Any idea?

I'm using version 1.3

My roundSlider configuration is:

$('#slider-2').roundSlider({
      radius: 150,
      width: 10,
      handleSize: 10,
      sliderType: 'min-range',
      startAngle: 90,
      readOnly: true,
      showTooltip: false,
      max: 100,
      value: 30
});

The css is:

.rs-bg-color {
      background-color: color($colors, 'bgPage');
}

.rs-range-color {
      background-color: color($colors, 'primary');
}

.rs-path-color {
      background: color($colors, 'bgPage');
}

.rs-handle {
      background-color: white;
      border: 2px solid color($colors, 'primary');
}

.rs-border {
      border: 0;
}
@soundar24
Copy link
Owner

@fermedina, In chrome while apply transform it will cause the jagged edges. To resolve this issue I made the below workaround:
http://jsfiddle.net/soundar24/LpuLe9tr/1227/

Otherwise, you can use the svg version of the slider (currently it was done in sample level only):
https://jsfiddle.net/soundar24/1usqdvc9/25/

@fermedina
Copy link
Author

Hi @soundar24! The workaround solves my problem more or less. Thanks!

@soundar24
Copy link
Owner

@fermedina This might be after a very long back, but a new update for you.

roundSlider was release with SVG mode support, so your mentioned requirement can be achieved in a very simplified way.

Demo: https://jsfiddle.net/soundar24/r5jcb1q4/5/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants