Skip to content

Commit

Permalink
AppBar should be positioned
Browse files Browse the repository at this point in the history
zIndex only has an effect if an element is positioned
  • Loading branch information
alldne committed Aug 24, 2015
1 parent 4c38959 commit db21ee8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/app-bar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ let AppBar = React.createClass({
let flatButtonSize = 36;
let styles = {
root: {
position: 'relative',
zIndex: 5,
width: '100%',
display: '-webkit-box; display: -webkit-flex; display: flex',
Expand Down
4 changes: 2 additions & 2 deletions src/app-canvas.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ let AppCanvas = React.createClass({
switch (currentChild.type.displayName) {
case 'AppBar' :
return React.cloneElement(currentChild, {
style: this.mergeStyles({
style: this.mergeStyles(currentChild.props.style, {
position: 'fixed',
}, currentChild.props.style),
}),
});
default:
return currentChild;
Expand Down

0 comments on commit db21ee8

Please sign in to comment.