mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
issue #27 full context menu trigger area
This commit is contained in:
parent
0f4e86d24a
commit
e7cbb7fdaa
2 changed files with 16 additions and 6 deletions
|
@ -138,7 +138,7 @@ class Widget extends Component {
|
|||
minWidth={ widget.minWidth }
|
||||
minHeight={ widget.minHeight }
|
||||
bounds={'parent'}
|
||||
className="widget"
|
||||
className="editing-widget"
|
||||
onResizeStart={ (direction, styleSize, clientSize, event) => this.borderWasClicked(event) }
|
||||
onResizeStop={(direction, styleSize, clientSize, delta) => this.resizeStop(direction, styleSize, clientSize, delta)}
|
||||
onDragStop={(event, ui) => this.dragStop(event, ui)}
|
||||
|
|
|
@ -8,16 +8,26 @@
|
|||
**********************************************************************************/
|
||||
|
||||
.widget {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
border: 1px solid lightgray;
|
||||
|
||||
padding: 3px 6px;
|
||||
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.editing-widget {
|
||||
border: 1px solid lightgray;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
/* Area to trigger the context menu */
|
||||
.react-contextmenu-wrapper {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
padding: 3px 6px;
|
||||
}
|
||||
|
||||
.react-contextmenu {
|
||||
min-width: 160px;
|
||||
padding: 5px 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue