primevue
primevue copied to clipboard
TreeTable: sticky left calculated incorrectly
Describe the bug
in the file https://github.com/primefaces/primevue/blob/master/packages/primevue/src/treetable/HeaderCell.vue DomHandler.getOuterWidth(prev) is used. the issue is getOuterWidth always returns an integer, rather than float.
i suggest replacing: DomHandler.getOuterWidth(prev) // returns int, if width was 10.4 it returns 10
with: prev.getBoundingClientRect().width //actually returns float
Reproducer
none
PrimeVue version
3.52.0
Vue version
3.x
Language
TypeScript
Build / Runtime
Vue CLI App
Browser(s)
all
Steps to reproduce the behavior
DomHandler.getOuterWidth returns integer
Expected behavior
width call to return a float number