mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
widgets work with context menu in edit mode, can be resized, look ugly in edit (db mode: ok)
This commit is contained in:
parent
333459878c
commit
0c38784907
1 changed files with 7 additions and 2 deletions
|
@ -108,8 +108,13 @@ class WidgetContextMenu extends React.Component {
|
|||
</Menu>
|
||||
);
|
||||
|
||||
return <div style={{display: "inline-block"}}>
|
||||
<MenuProvider id={'widgetMenu'+ this.props.index} style={{display: 'inline-block'}}>
|
||||
let dim = {
|
||||
width: this.props.widget.width,
|
||||
height: this.props.widget.height
|
||||
};
|
||||
|
||||
return <div style={dim}>
|
||||
<MenuProvider id={'widgetMenu'+ this.props.index} style={dim}>
|
||||
<Widget
|
||||
data={this.props.widget}
|
||||
onWidgetChange={this.props.onWidgetChange}
|
||||
|
|
Loading…
Add table
Reference in a new issue