-
Notifications
You must be signed in to change notification settings - Fork 175
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
RawDataModal is now aware of updates to its Scroller viewport #25
Conversation
} | ||
|
||
getStringifiedFilters(): List<string> { | ||
const { essence, timekeeper } = this.props; | ||
const { dataCube } = essence; | ||
|
||
return essence.getEffectiveFilter(timekeeper).clauses.map((clause, i) => { | ||
return essence.getEffectiveFilter(timekeeper).clauses.map((clause, ) => { |
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.
clauses.map((clause, ) zbędny przecinek. clauses.map(clause => {...})
@@ -336,6 +338,11 @@ export class Scroller extends React.Component<ScrollerProps, ScrollerState> { | |||
|
|||
if (this.state.viewportHeight !== newHeight || this.state.viewportWidth !== newWidth) { | |||
this.setState({viewportHeight: newHeight, viewportWidth: newWidth}); | |||
|
|||
const onViewportUpdate = this.props.onViewportUpdate; | |||
const viewportStage = new Stage({x: rect.x, y: rect.y, width: newWidth, height: newHeight}); |
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.
Po co tworzyć viewportStage skoro nie wiadomo czy funkcja onViewportUpdate istnieje. Sprawdź czy istnieje a następnie stwórz viewportStage i wywołaj onViewportUpdate;
lub
const { onViewportUpdate } = this.props;
const { x, y, height, width } = rect;
onViewportUpdate && onViewportUpdate(new Stage({x, y, width: newWidth, height: newHeight}));
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 point!
Fixes #12