Skip to content

Fix bug where perspective-viewer doesn't resize#911

Merged
texodus merged 1 commit intomasterfrom
resize-bug
Feb 10, 2020
Merged

Fix bug where perspective-viewer doesn't resize#911
texodus merged 1 commit intomasterfrom
resize-bug

Conversation

@zemeolotu
Copy link
Contributor

No description provided.

Copy link
Member

Choose a reason for hiding this comment

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

This was supposed to return false because _pre_resize() above it itself calls this.plugin.resize() here, thus preventing resize logic form being applied twice. Clearly that's not working correctly but I believe returning true here will render the plugin twice?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Gotcha, however pre_resize() isn't actually called in that block. Is the right fix to just call pre_resize then?

@texodus
Copy link
Member

texodus commented Feb 10, 2020

Thanks for the PR! I believe this is fixed in #914

@texodus texodus closed this Feb 10, 2020
@texodus texodus deleted the resize-bug branch February 10, 2020 10:06
@texodus texodus restored the resize-bug branch February 10, 2020 22:11
@texodus texodus reopened this Feb 10, 2020
@texodus
Copy link
Member

texodus commented Feb 10, 2020

Thank for the PR! I misread this in review, apologies!

Copy link
Member

@texodus texodus left a comment

Choose a reason for hiding this comment

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

Looks good!

@texodus texodus merged commit 48b5015 into master Feb 10, 2020
@texodus texodus deleted the resize-bug branch February 10, 2020 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants