-
Notifications
You must be signed in to change notification settings - Fork 256
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
Improve Resizer Further #1453
Improve Resizer Further #1453
Conversation
Default is now 50/50 instead of 60/40, but can be specified on a per use basis
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.
Good work altogether -- glad to see this fix. Just a couple of changes requested for clarity.
@@ -159,6 +159,8 @@ class CellEditorOverlay extends Component { | |||
containerClass="resizer--full-size" | |||
minTopHeight={MINIMUM_HEIGHTS.visualization} | |||
minBottomHeight={MINIMUM_HEIGHTS.queryMaker} | |||
initialTopHeight={INITIAL_HEIGHTS.visualization} |
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.
cool
@@ -10,7 +10,7 @@ import Header from '../containers/Header' | |||
import ResizeContainer from 'src/shared/components/ResizeContainer' | |||
|
|||
import {VIS_VIEWS} from 'src/shared/constants' | |||
import {MINIMUM_HEIGHTS} from '../constants' | |||
import {MINIMUM_HEIGHTS, INITIAL_HEIGHTS} from '../constants' |
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.
no relative paths plz
static defaultProps = { | ||
minTopHeight: minimumTopHeight, | ||
minBottomHeight: minimumBottomHeight, | ||
initialTopHeight: initialHeight, |
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.
it's a bit confusing to assign initialHeight
to both initialTopHeight
and initialBottomHeight
-- maybe rename this constant fiftyPercent
?
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.
Chose to use defaultInitialTopHeight
and defaultInitialBottomHeight
instead of a single constant for both
} | ||
} | ||
|
||
const {node, number, string} = PropTypes |
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.
install and use Prettier for auto-formatting
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.
I did the thing
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.
Looks great. Cleaner, clearer, faster, better, stronger.
Connect #1427 |
Problem
#1427 - First thing people do is resize the page. The initial sizes of
QueryMaker
vsVisualization
are not idealSolution
ResizeContainer
for initial heightVisualization
andQueryMaker
alongside minimum heightsQueryMaker
will initially be 2/3 of the page on loadPreview