added a small message
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user