Contain contents of each division

pull/3374/head
Alex P 2018-05-01 14:38:01 -07:00 committed by Andrew Watkins
parent 2befc7b98a
commit fe68a96fab
2 changed files with 11 additions and 3 deletions

View File

@ -37,7 +37,7 @@ class Division extends PureComponent<Props> {
return (
<div className={this.className} style={this.style}>
{this.dragHandle}
{render()}
<div className="resizer--contents">{render()}</div>
</div>
)
}

View File

@ -231,8 +231,16 @@ $resizer-color-kapacitor: $c-rainforest;
}
}
.resizer--title.horizontal + div {
.resizer--contents {
width: 100%;
height: 100%;
}
.resizer--title + .resizer--contents {
width: 100%;
height: calc(100% - 30px);
position: absolute;
top: 30px;
top: 30px;
overflow: hidden;
}