Skip to content

Commit df16ebf

Browse files
committed
AppCanvas don't set anymore position fixed on a child AppBar. Instead, AppBar should specify it's position (witch, by default is "fixed").
1 parent 958490b commit df16ebf

1 file changed

Lines changed: 1 addition & 18 deletions

File tree

src/app-canvas.jsx

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,9 @@ let AppCanvas = React.createClass({
1616
WebkitFontSmoothing: 'antialiased',
1717
};
1818

19-
let newChildren = React.Children.map(this.props.children, (currentChild) => {
20-
if (!currentChild) { // If undefined, skip it
21-
return null;
22-
}
23-
24-
switch (currentChild.type.displayName) {
25-
case 'AppBar' :
26-
return React.cloneElement(currentChild, {
27-
style: this.mergeStyles({
28-
position: 'fixed',
29-
}, currentChild.props.style),
30-
});
31-
default:
32-
return currentChild;
33-
}
34-
}, this);
35-
3619
return (
3720
<div style={styles}>
38-
{newChildren}
21+
{this.props.children}
3922
</div>
4023
);
4124
},

0 commit comments

Comments
 (0)