fix(react-remote): Put a title on the container region

Fixes T3512
This commit is contained in:
Ben Gotow 2015-09-08 14:03:59 -07:00
parent 15f5a6899f
commit 2eb4abb130

View file

@ -168,6 +168,12 @@ reactRemoteContainer.style.zIndex = 10000;
reactRemoteContainer.style.border = '5px solid orange';
document.body.appendChild(reactRemoteContainer);
var reactRemoteContainerTitle = document.createElement('div');
reactRemoteContainerTitle.style.color = 'white';
reactRemoteContainerTitle.style.backgroundColor = 'orange';
reactRemoteContainerTitle.innerText = 'React Remote Container';
reactRemoteContainer.appendChild(reactRemoteContainerTitle);
var toggleContainerVisible = function() {
if (reactRemoteContainer.style.left === '-10000px') {
reactRemoteContainer.style.left = 0;