Permalink
Browse files

fixed the layout of the slider

  • Loading branch information...
1 parent b66e817 commit 11a009b9bbeaa298775854b0cb9e635b9d091e1d @kgn committed Dec 8, 2012
@@ -54,9 +54,9 @@ - (void)setUIValues{
self.valueSlider.minimumValueImage = [UIImage imageWithContentsOfFile:minImagePath];
self.valueSlider.maximumValueImage = [UIImage imageWithContentsOfFile:maxImagePath];
CGRect valueSliderFrame = self.valueSlider.frame;
- valueSliderFrame.origin.y = (CGFloat)round((self.contentView.frame.size.height*0.5f)-(valueSliderFrame.size.height*0.5f));
valueSliderFrame.origin.x = InAppSettingsCellPadding;
- valueSliderFrame.size.width = CGRectGetWidth(self.bounds)-(InAppSettingsTotalTablePadding+InAppSettingsTotalCellPadding);
+ valueSliderFrame.size.width = CGRectGetWidth(self.contentView.bounds)-InAppSettingsCellPadding*2;
+ valueSliderFrame.origin.y = (CGFloat)round(CGRectGetMidY(self.contentView.bounds)-round(valueSliderFrame.size.height*0.5));
self.valueSlider.frame = valueSliderFrame;
self.valueSlider.value = [[self.setting getValue] floatValue];
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 11a009b

Please sign in to comment.