iOS: Slider support fit size and slidePosition
This commit is contained in:
@@ -25,6 +25,13 @@ @interface DoricNestedSliderView : UIScrollView
|
||||
@end
|
||||
|
||||
@implementation DoricNestedSliderView
|
||||
- (CGSize)sizeThatFits:(CGSize)size {
|
||||
CGSize result = [super sizeThatFits:size];
|
||||
if (self.doricLayout.heightSpec == DoricLayoutFit && self.contentSize.height > 0) {
|
||||
return CGSizeMake(result.width, self.contentSize.height);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
@end
|
||||
|
||||
@interface DoricNestedSliderNode () <UIScrollViewDelegate>
|
||||
|
||||
Reference in New Issue
Block a user