Container: Better support of position
This commit is contained in:
parent
c60a8651db
commit
8783de497d
1 changed files with 3 additions and 3 deletions
|
@ -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}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue