Skip to content
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

Merged
merged 7 commits into from
Feb 12, 2018

Conversation

piter75
Copy link
Contributor

@piter75 piter75 commented Feb 9, 2018

Fixes #12

}

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, ) => {
Copy link
Contributor

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});
Copy link
Contributor

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}));

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point!

@mkuthan mkuthan added this to the 1.1.0 milestone Feb 12, 2018
@mkuthan mkuthan merged commit 4f01e7f into master Feb 12, 2018
@mkuthan mkuthan deleted the rawdata_rendering_fixes branch February 12, 2018 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants