@@ -461,8 +523,8 @@ class Widget extends React.Component{
* This is an internal methods don't override
* @returns {HTMLElement}
*/
- render(){
-
+ render() {
+
const widgetStyle = this.state.widgetStyling
@@ -470,8 +532,8 @@ class Widget extends React.Component{
cursor: this.cursor,
zIndex: this.state.zIndex,
position: "absolute", // don't change this if it has to be movable on the canvas
- top: `${this.state.pos.y}px`,
- left: `${this.state.pos.x}px`,
+ top: `${this.state.pos.y}px`,
+ left: `${this.state.pos.x}px`,
width: `${this.state.size.width}px`,
height: `${this.state.size.height}px`,
}
@@ -485,23 +547,23 @@ class Widget extends React.Component{
// console.log("selected: ", this.state.selected)
return (
-
-
+
+
{this.renderContent()}
-
+
@@ -534,7 +596,7 @@ class Widget extends React.Component{
}
-}
+}
export default Widget
\ No newline at end of file