Skip to content

Commit

Permalink
Merge pull request mui#1478 from alldne/master
Browse files Browse the repository at this point in the history
AppBar should be positioned
  • Loading branch information
shaurya947 committed Nov 10, 2015
2 parents db23297 + db21ee8 commit c24b79a
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 @@ -87,6 +87,7 @@ const 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 @@ -51,9 +51,9 @@ const 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 c24b79a

Please sign in to comment.