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

[Bug] the data zoom length should take the handle icon width into account #20686

Open
Justin-ZS opened this issue Jan 14, 2025 · 5 comments
Open
Labels
bug en This issue is in English pending We are not sure about whether this is a bug/new feature.

Comments

@Justin-ZS
Copy link

Version

5.6.0

Link to Minimal Reproduction

Demo

Steps to Reproduce

See the demo.
The left handle is visible as expected.
Image
But the right handle is invisible.(NG)
Image

Current Behavior

But the right handle is invisible

Expected Behavior

Both handles should be visible.

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

Similar issue: #20593

@Justin-ZS Justin-ZS added the bug label Jan 14, 2025
@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels Jan 14, 2025
@helgasoft
Copy link

@Justin-ZS - yes, another micro-bug (who's still counting them...)
Easy workaround though - add left:'1%', right:'1%', to dataZoom.

@Justin-ZS
Copy link
Author

@Justin-ZS - yes, another micro-bug (who's still counting them...) Easy workaround though - add left:'1%', right:'1%', to dataZoom.

If the grid has axis labels or has left, right set, adding left:'1%', right:'1%' doesn't help.

@helgasoft
Copy link

If the grid has axis labels or has left, right set, adding left:'1%', right:'1%' doesn't help.

do you have sample code for that?
Grid has no labels by definition and grid left/right do not affect dataZoom size - Demo

@Justin-ZS
Copy link
Author

Justin-ZS commented Jan 16, 2025

If the grid has axis labels or has left, right set, adding left:'1%', right:'1%' doesn't help.

do you have sample code for that? Grid has no labels by definition and grid left/right do not affect dataZoom size - Demo

When grid axis labels are shown. demo

When grid has left, right set. demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug en This issue is in English pending We are not sure about whether this is a bug/new feature.
Projects
None yet
Development

No branches or pull requests

3 participants