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.
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.
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 laterMath.max
is called with an integer and that string, returningNaN
to which the container's height is incorrectly set.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.