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

Resolved: feat(ui-library): bug fix in slider #322

Merged
merged 1 commit into from
Sep 7, 2023

Conversation

pheolink
Copy link
Contributor

No description provided.

@pheolink pheolink changed the title feat(ui-library): bug fix in slider Resolved: feat(ui-library): bug fix in slider Aug 31, 2023
@pheolink pheolink force-pushed the feat-range-slider branch 2 times, most recently from e436ab8 to 1f9b256 Compare September 5, 2023 10:35
export const findToolTipPosition = (minVal: string, maxVal: string, offsetWidthVal: number, value: number) => {
const min = parseFloat(minVal);
const max = parseFloat(maxVal);
const width = offsetWidthVal;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason, when we get the width of the range slider, the dimensions that we get are bigger than what actually appears on screen. I initially thought this was to do with margin and padding on the sides, but we don't apply either of those styles. I think if we can get the correct width of the input element, then the tooltip will be placed more accurately

@pheolink pheolink force-pushed the feat-range-slider branch 2 times, most recently from a1a7c15 to a159572 Compare September 6, 2023 15:48
@pheolink pheolink self-assigned this Sep 6, 2023
@pheolink pheolink linked an issue Sep 6, 2023 that may be closed by this pull request
4 tasks
@pheolink pheolink force-pushed the feat-range-slider branch 2 times, most recently from a1770f4 to a4d7a5f Compare September 7, 2023 08:44
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

Successfully merging this pull request may close these issues.

Slider - Fix (single & multi value)
3 participants