add minValue, maxValue and hidpi support
Merge pull request #1 from edenh/master

add minValue, maxValue and hidpi support