Container: Better support of position

This commit is contained in:
Siklos 2022-07-31 11:44:28 +02:00
parent c60a8651db
commit 8783de497d

View file

@ -15,10 +15,10 @@ export class Container extends React.Component<IContainerProps> {
const containersElements = this.props.children.map(child => child.render()); const containersElements = this.props.children.map(child => child.render());
return ( return (
<g> <g
transform={`translate(${this.props.x}, ${this.props.y})`}
>
<rect <rect
x={this.props.x}
y={this.props.y}
width={this.props.width} width={this.props.width}
height={this.props.height} height={this.props.height}
style={this.props.style} style={this.props.style}