VSeed, an elegant data composer, transforming complexity into simplicity.
!!!###!!!title=61. The font of VTable is blurry or ghosted after the browser is zoomed——VisActor/VTable FAQ documents!!!###!!!!!!###!!!description=---title: 39. VTable font appears blurry or ghosted after browser zoomkey words: VisActor,VChart,VTable,VStrory,VMind,VGrammar,VRender,Visualization,Chart,Data,Table,Graph,Gis,LLM---!!!###!!!
Question Title
How to fix blurry or ghosted fonts in VTable after browser zooming?
Problem Description
When using the VTable component and zooming in the browser, the fonts become blurry, usually caused by adaptive height (flex-1).
Solution
VTable provides the setPixelRatio API, combined with size change monitoring of the outer wrapping DOM to solve the problem.
The core solution is to set the wrapped height to the table's height (without decimal points) and ensure it's an integer divisible by the zoom ratio. This means the table height needs to be reduced when zoomed.