Menu

#53 KTable computeSize() calculation wrong

open
nobody
Rendering (18)
5
2011-03-02
2011-03-02
Chris
No

method computeSize in class KTable calculates width wrong table width.
version 2.2.0 line ~3504 says width += m_Model.getColumnWidth(m_Model.getFixedHeaderColumnCount());
presumably should be width += m_Model.getColumnWidth(i);

otherwise width of table is calculated from fixed column width + n*1st-non-fixed column width instead of provided column widths.
I don't know about side-effects (lots of columns, width not provided ..) but in my case the above code fixed the issue.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB