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

Added vertical mode, upper and lower track images, thumb and track dimensions #27

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ericrisler
Copy link

NMRangeSlider (erisler additions)


  • Added "vertical mode" to slider to render and operate vertically.
    NOTE: because 0,0 is the upper left in iOS, the control is rendered
    upside down to the way you would expect it to function. This means that
    the handle at the top actually represents the "lower" value and if you
    slide it up, the lower value will decrease toward 0 (the opposite being
    true for the "upper" handle). For now (until myself or someone else
    changes the code) you will have to convert the upper and lower values
    after reading them. I've included this code in the example to
    illustrate.
  • Added track and track background width property so you can explicitly
    set both. These values will only take effect if the track and
    background images have insets on them.
  • Added track and track background padding property so you can inset
    the track from the end of the control's bounds.
  • Updated default theme images and added new vertical theme
  • Added lower and upper track image properties. These currently only
    apply if you enable the double slider (lowerHandleHidden==NO &&
    upperHandleHidden==NO). Note - at this time the "upper" track in
    vertical mode is in fact the bottom track. This is because (0,0) is at
    the top.
  • Updated demo project showing new features.
  • Added thumb width+height properties. If you set insets for the thumb
    images you can resize them using these properties.

screenshot 2014 05 05 03 33 45

ericrisler added 2 commits May 5, 2014 03:25
…r and lower track images, etc)

# NMRangeSlider (erisler additions)

* * * * * * * * * * *

* Added "vertical mode" to slider to render and operate vertically.
NOTE: because 0,0 is the upper left in iOS, the control is rendered
upside down to the way you would expect it to function. This means that
the handle at the top actually represents the "lower" value and if you
slide it up, the lower value will decrease toward 0 (the opposite being
true for the "upper" handle). For now (until myself or someone else
changes the code) you will have to convert the upper and lower values
after reading them. I've included this code in the example to
illustrate.

* Added track and track background width property so you can explicitly
set both. These values will only take effect if the track and
background images have insets on them.

* Added track and track background padding property so you can inset
the track from the end of the control's bounds.

* Updated default theme images and added new vertical theme

* Added lower and upper track image properties. These currently only
apply if you enable the double slider (lowerHandleHidden==NO &&
upperHandleHidden==NO). Note - at this time the "upper" track in
vertical mode is in fact the bottom track. This is because (0,0) is at
the top.

* Updated demo project showing new features.

* Added thumb width+height properties. If you set insets for the thumb
images you can resize them using these properties.
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.

1 participant