Search code examples
javascriptslickgrid

getColumn(id).width is not the same as the width displayed by the browser


I am using version 2.0a1 of Slickgrid, and I need to get some columns width in order to display some boxes on top of them (the box and the column need to have the same width).

Problem is, when I use grid.getColumn(id).width, it gives me a width that is slightly larger than the real width (real width as displayed by the browser -tried both chrome and FF7). Not sure where the difference is coming from.

If you know where the difference comes from, or if you know another way to get a specific's columns width, I would appreciate it.


Solution

  • The width reported by SlickGrid includes the padding and the border.