add minValue, maxValue and hidpi support