-
Notifications
You must be signed in to change notification settings - Fork 444
Improve layout in the map viewer #11789
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| import React from "react"; | ||
| import FlexBox, { FlexFill } from "./FlexBox"; | ||
|
|
||
| export default ({ | ||
| id, | ||
| header, | ||
| footer, | ||
| background, | ||
| leftColumn, | ||
| rightColumn, | ||
| columns, | ||
| className, | ||
| top, | ||
| bottom, | ||
| children, | ||
| bodyClassName | ||
| }) => { | ||
| return ( | ||
| <FlexBox id={id} className={className} column classNames={['_fill', '_absolute']}> | ||
| {header} | ||
| <FlexFill flexBox column className={bodyClassName} classNames={['_relative', 'ms2-layout-body']}> | ||
| <div className="_fill _absolute">{background}</div> | ||
| <div className="_relative">{top}</div> | ||
| <FlexFill flexBox classNames={['_relative', 'ms2-layout-main-content']}> | ||
| <div className="_relative ms2-layout-left-column">{leftColumn}</div> | ||
| <FlexFill classNames={['_relative', 'ms2-layout-content']}> | ||
| {children} | ||
| </FlexFill> | ||
|
Comment on lines
+26
to
+28
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This component container represent the visible content on top of the map, when this component resize we should update also the state of the
|
||
| <div className="_relative ms2-layout-right-column">{rightColumn}</div> | ||
| <div className="ms2-layout-columns">{columns}</div> | ||
| </FlexFill> | ||
| <div className="_relative">{bottom}</div> | ||
| </FlexFill> | ||
| {footer} | ||
| </FlexBox> | ||
|
Comment on lines
+19
to
+35
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's change name of the classes to ensure it is not the same of BorderLayout. We could use |
||
| ); | ||
| }; | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please avoid direct default export, write instead