Menu

#24 Error in vertical scroll

open
nobody
Rendering (18)
5
2006-05-10
2006-05-10
Anonymous
No

If you have a KTable with cells that have multiline
(rows whose height is greater than the header) when
you resize the KTable the scroolbar does not adjust
suitably and the the last row is possible that it is
not seen correctly.
You can try it with the example of Town in ExampleGUI.
The problem is the method "getFullyVisibleRowCount",
this method return a wrong value sometimes

Discussion

  • Nobody/Anonymous

    Logged In: NO

    there is also a problem if the row height is taller than the
    view area. you can never scroll a partial row so you can
    see the bottom of the row. I may look into implementing a
    smooth pixel by pixel scroll for the non-fixed rows which
    hopefully will eliminate both issues.

     
  • Nobody/Anonymous

    Logged In: NO

    Not only last row. Multile rows could be lost in such cases.

     
  • rk13

    rk13 - 2006-11-23

    Logged In: YES
    user_id=1389695
    Originator: NO

    As a temporary quick workaround which helped for my table could be adding additional check in getFullyVisibleRowCount
    loop that iterator is less than model row count. This however does not eliminate the root of the problem, but may help someone

     
  • Nobody/Anonymous

    Logged In: NO

    As already mentioned here, one should modify getFullyVisibleRowCount by

    for (int i=m_TopRow; heightSum<rect.height && i < this.getModel().getRowCount(); i++) {

    Since this is only a range check, this should be a good bug fix.
    However I dont know if it fixes the bug completely.

     

Log in to post a comment.

MongoDB Logo MongoDB