1
0
Fork 0
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:
irismarie 2020-11-05 12:28:24 +01:00
parent 333459878c
commit 0c38784907

View file

@ -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}