added a small message

This commit is contained in:
paul
2025-03-06 21:41:54 +05:30
parent 9439eface6
commit 76dd829a78
2 changed files with 4 additions and 3 deletions

View File

@@ -1063,7 +1063,7 @@ class Canvas extends React.Component {
ref={this.widgetRefs[id]}
initialData={initialData}
canvasRef={this.canvasContainerRef}
canvasInnerContainerRef={this.canvasRef}
canvasMetaData={{
zoom: this.state.zoom,
pan: this.state.currentTranslate

View File

@@ -1261,8 +1261,9 @@ class Widget extends React.Component {
// FIXME: from here
// left: ((elementRect?.left || 0) - 10 - canvasPan.x) / canvasZoom ,
// top: ((elementRect?.top || 0) - 10 - canvasPan.y) / canvasZoom ,
left: 1,
top: 1,
// left: ,
// top: ,
// NOTE: also subtract canvas inner ref thats passed
position: "fixed",
width: this.state.size.width + 20,
height: this.state.size.height + 20,