alskipp / ASValueTrackingSlider

A UISlider subclass that displays the slider value in a popup view
MIT License
1.84k stars 234 forks source link

Cannot adjust popup size #35

Closed LeeroyDing closed 9 years ago

LeeroyDing commented 9 years ago

The slider popup looks weird with custom fonts (e.g. small Roboto fonts). There should be a way (without modifying the source) to specify the size of the popup view, maybe by allowing clients to customize width/height padding factors.

LeeroyDing commented 9 years ago

never mind

alskipp commented 9 years ago

I guess you either stopped using Roboto ; ) or found…

// width padding factor of the popUpView, default is 1.15
@property (nonatomic) CGFloat popUpViewWidthPaddingFactor;
// height padding factor of the popUpView, default is 1.1
@property (nonatomic) CGFloat popUpViewHeightPaddingFactor;

I do need to update the README and the CocoaPods version, as these are recent additions.

LeeroyDing commented 9 years ago

I was using this library ~1mo ago and found this issue. The project ended and I was trying to implement this, until I found it myself :|