Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

fixed console resizing bug #522

Merged
merged 1 commit into from
Oct 17, 2018
Merged

fixed console resizing bug #522

merged 1 commit into from
Oct 17, 2018

Conversation

kzidane
Copy link
Contributor

@kzidane kzidane commented Oct 6, 2018

Issue #, if available:
When resizing console, maximizing it, then minimizing it again, the draggable bar is no longer at the correct height so trying to resize the console by dragging the bar no longer works. (See the gif below!) This happens because container.height becomes a string that represents the percentage height (e.g., "50%") and later Math.max is called with an integer and that string, returning NaN to which the container's height is incorrectly set.

console

Description of changes:
This PR uses the container's offsetHeight instead.

cc @danallan @nightwing

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@kzidane
Copy link
Contributor Author

kzidane commented Oct 6, 2018

cc @dmalan @brianyu28

Copy link
Contributor

@danallan danallan left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@danallan danallan merged commit c4d1c59 into c9:master Oct 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants