Spaces:
Configuration error
Configuration error
Commit
·
daa400f
1
Parent(s):
783016f
Adjustable Edited
Browse files
frontend/src/Components/Nodes/Custom.js
CHANGED
@@ -42,7 +42,7 @@ export default class CustomNodeIframe extends React.Component {
|
|
42 |
|
43 |
handelOnChange(evt, type){
|
44 |
this.setState({reachable : this.state.reachable, selected : this.state.selected, data : this.state.data, width : type === "width" ? parseInt(evt.target.value) : this.state.width, height : type === "height" ? parseInt(evt.target.value) : this.state.height, size : this.state.size})
|
45 |
-
|
46 |
}
|
47 |
|
48 |
handelSize(evt, increment, change){
|
|
|
42 |
|
43 |
handelOnChange(evt, type){
|
44 |
this.setState({reachable : this.state.reachable, selected : this.state.selected, data : this.state.data, width : type === "width" ? parseInt(evt.target.value) : this.state.width, height : type === "height" ? parseInt(evt.target.value) : this.state.height, size : this.state.size})
|
45 |
+
type === "width" ? this.myRef.current.style.width = `${parseInt(evt.target.value)}px` : this.myRef.current.style.height = `${parseInt(evt.target.value)}px`
|
46 |
}
|
47 |
|
48 |
handelSize(evt, increment, change){
|