bugfix width handler

main
Mike Fix 2 years ago
parent 3f6b14de9b
commit 4f4a3837ce
No known key found for this signature in database
GPG Key ID: 1D85E862314CA79F

@ -411,6 +411,7 @@ class Editor extends React.Component {
onChange={this.updateWidth}
onChangeComplete={this.sync}
paddingHorizontal={config.paddingHorizontal}
paddingVertical={config.paddingVertical}
/>
}
>

@ -13,7 +13,13 @@ function clamp(value, min, max) {
return value
}
export default function WidthHandler({ onChange, onChangeComplete, innerRef, paddingHorizontal }) {
export default function WidthHandler({
innerRef,
onChange,
onChangeComplete,
paddingHorizontal,
paddingVertical,
}) {
const startX = React.useRef(null)
const startWidth = React.useRef(null)
@ -60,8 +66,8 @@ export default function WidthHandler({ onChange, onChangeComplete, innerRef, pad
z-index: 2;
position: absolute;
background-color: ${COLORS.BLUE};
top: ${paddingHorizontal};
bottom: ${paddingHorizontal};
top: ${paddingVertical};
bottom: ${paddingVertical};
right: ${paddingHorizontal};
width: 8px;
cursor: ew-resize;

Loading…
Cancel
Save