primevue icon indicating copy to clipboard operation
primevue copied to clipboard

TreeTable: sticky left calculated incorrectly

Open sergeydus opened this issue 8 months ago • 0 comments

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

sergeydus avatar Jun 25 '24 12:06 sergeydus