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

Always display all the decimals of the slider's value #67

Merged
merged 1 commit into from
Mar 28, 2016

Conversation

gregoiresage
Copy link
Contributor

Also it would be cool if the width of the value-pad would be fixed

@keegan-lillo
Copy link
Contributor

Good idea. Feel like writing a test for it?

@gregoiresage
Copy link
Contributor Author

Yes of course!
Le 26 mars 2016 1:23 AM, "keegan-lillo" notifications@github.com a écrit :

Good idea. Feel like writing a test for it?


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#67 (comment)

@gregoiresage
Copy link
Contributor Author

Is this test enough ?

assert.strictEqual($valueDisplay.get('value'), '50.00');
assert.strictEqual($valueDisplayPad.get('innerHTML'), '50.00');
assert.strictEqual($slider.get('value'), '50');
$valueDisplay.set('value', 75).trigger('change');
Copy link
Contributor

Choose a reason for hiding this comment

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

Rather run the setter via the normal API sliderItem.set(75)

@gregoiresage
Copy link
Contributor Author

done

@keegan-lillo
Copy link
Contributor

Looks good. Thanks for doing this 😄

@keegan-lillo keegan-lillo merged commit 68723d3 into pebble:master Mar 28, 2016
@keegan-lillo keegan-lillo added this to the v0.1.6 milestone Mar 28, 2016
@keegan-lillo keegan-lillo modified the milestones: v0.1.7, v0.1.6 May 31, 2016
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.

None yet

2 participants