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

fix(react-components): allow vertical legend reszing when title present on widget #3056

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

ssjagad
Copy link
Contributor

@ssjagad ssjagad commented Nov 20, 2024

Overview

When there was a title present, legend resizing vertically would automatically set the height of the legend to the maximum size and allow no user interaction. This was because we were setting the height to be the adjustedChartHeight value, that considers the title being present. However, in the hook where we get the chartHeight/Width the chart height is already factored in. This was making the chart default to something too large, hence always being stuck at the max-constraint.

Simple fix: just use the chartHeight given by our useResizableEChart hook.

Verifying Changes

Screen.Recording.2024-11-20.at.2.34.39.PM.mov

Legal

This project is available under the Apache 2.0 License.

@ssjagad ssjagad merged commit b645563 into rc Nov 21, 2024
18 checks passed
@ssjagad ssjagad deleted the legend-vertical-title branch November 21, 2024 00:19
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.

2 participants