Skip to content

Commit c10612d

Browse files
thiagofsr97Thiago
andauthored
Enabled usage of height and width props from Touch Dimensions on Markers. (ptomasroos#191)
Co-authored-by: Thiago <thiago@fuze.cc>
1 parent f74971d commit c10612d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

MultiSlider.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,8 @@ export default class MultiSlider extends React.Component {
408408
} = this.props.touchDimensions;
409409
const touchStyle = {
410410
borderRadius: borderRadius || 0,
411+
...height && { height },
412+
...width && { width },
411413
};
412414

413415
const markerContainerOne = {
@@ -624,6 +626,5 @@ const styles = StyleSheet.create({
624626
backgroundColor: 'transparent',
625627
justifyContent: 'center',
626628
alignItems: 'center',
627-
alignSelf: 'stretch',
628629
},
629630
});

0 commit comments

Comments
 (0)