Merge pull request #58 from gaearon/fix-toggle-visibility

Fix devtools visiblity after hiding
This commit is contained in:
Dan Abramov 2015-08-12 23:43:48 +03:00
commit f52df89d66
2 changed files with 3 additions and 4 deletions

View File

@ -20,9 +20,8 @@ export function getDefaultStyle(props) {
right: right ? 0 : undefined, right: right ? 0 : undefined,
top: top ? 0 : undefined, top: top ? 0 : undefined,
bottom: bottom ? 0 : undefined, bottom: bottom ? 0 : undefined,
maxHeight: (bottom && top) ? '100%' : '20%', maxHeight: (bottom && top) ? '100%' : '30%',
maxWidth: (left && right) ? '100%' : '20%', maxWidth: (left && right) ? '100%' : '30%',
minWidth: 300,
wordWrap: 'break-word', wordWrap: 'break-word',
boxSizing: 'border-box', boxSizing: 'border-box',
boxShadow: '-2px 0 7px 0 rgba(0, 0, 0, 0.5)' boxShadow: '-2px 0 7px 0 rgba(0, 0, 0, 0.5)'

View File

@ -10,7 +10,7 @@ const styles = {
overflowY: 'hidden', overflowY: 'hidden',
width: '100%', width: '100%',
height: '100%', height: '100%',
fontSize: '0.95em' minWidth: 300
}, },
buttonBar: { buttonBar: {
textAlign: 'center', textAlign: 'center',