aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/nav/NavBar.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/components/nav/NavBar.tsx')
-rw-r--r--server/sonar-web/src/main/js/components/nav/NavBar.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/components/nav/NavBar.tsx b/server/sonar-web/src/main/js/components/nav/NavBar.tsx
index d18ba17b7d2..8370ff1ed9b 100644
--- a/server/sonar-web/src/main/js/components/nav/NavBar.tsx
+++ b/server/sonar-web/src/main/js/components/nav/NavBar.tsx
@@ -26,6 +26,7 @@ interface Props {
children?: any;
className?: string;
height: number;
+ top?: number;
notif?: React.ReactNode;
[prop: string]: any;
}
@@ -58,9 +59,9 @@ export default class NavBar extends React.PureComponent<Props, State> {
};
render() {
- const { children, className, height, notif, ...other } = this.props;
+ const { children, className, height, top, notif, ...other } = this.props;
return (
- <nav {...other} className={classNames('navbar', className)} style={{ height }}>
+ <nav {...other} className={classNames('navbar', className)} style={{ height, top }}>
<div
className={classNames('navbar-inner', { 'navbar-inner-with-notif': notif != null })}
style={{ height, left: this.state.left }}>