antvis/G6




The issue has been closed
Combo with bottom hanging label gets stuck to the canvas when dragging the combo #4671
bsansone posted onGitHub
Describe the bug
When a combo has a label that is positioned to the bottom and textbaseline set to hanging
the labels will be stuck to the screen when dragging the combo.
Your Example Website or App
https://codesandbox.io/s/drag-combo-label-bug-mwcqgx?file=/src/App.vue
Steps to Reproduce the Bug or Issue
- Go to https://codesandbox.io/s/drag-combo-label-bug-mwcqgx?file=/src/App.vue
- Drag the combo around
- Notice the label displays correctly
- Uncomment the line
// textBaseline: "hanging",
- Drag the combo around
- Notice the label leaves behind a trail of itself stuck to the screen
Expected behavior
When dragging a combo with a bottom hanging label, it should not leave behind traces of itself on the canvas.
Screenshots or Videos
Video recording
Screencast from 06-22-2023 09:37:27 AM.webm
Screenshot
Platform
- OS: Linux Ubuntu 22.04.2 LTS x86_64
- Browser: Google Chrome 114.0.5735.133 (Official Build) (64-bit)
- Version: @antv/g6 4.8.17
Additional context
No response