Pull out z-index to the sticker picker

As it's not a thing that's necessary for other PersistedElements,
only the sticker picker because it has to sit above the ContextMenu
it sits in.
This commit is contained in:
David Baker 2018-07-03 18:25:33 +01:00
parent 74f2d0a360
commit ad35fbf208
2 changed files with 6 additions and 6 deletions

View file

@ -34,9 +34,6 @@ function getOrCreateContainer(containerId) {
return container;
}
// Greater than that of the ContextualMenu
const PE_Z_INDEX = 5000;
/*
* Class of component that renders its children in a separate ReactDOM virtual tree
* in a container element appended to document.body.
@ -104,12 +101,11 @@ export default class PersistedElement extends React.Component {
left: parentRect.left + 'px',
width: parentRect.width + 'px',
height: parentRect.height + 'px',
zIndex: PE_Z_INDEX,
});
}
render() {
const content = <div ref={this.collectChild}>
const content = <div ref={this.collectChild} style={this.props.style}>
{this.props.children}
</div>;