TableViewer Painting CellEditor One Cell To High [message #447416] |
Tue, 14 December 2004 16:19 |
Preston Lee Messages: 25 Registered: July 2009 |
Junior Member |
|
|
I'm making use of TableViewers for almost all of my tables. In one
particular case, the editor (be it a Text, Combo etc) is *always* drawn
exactly one cell above where it should be. For example, if you click a
cell in the first row, the editor is drawn on top of the table header. If
there is no header, it still gets drawn one cell height above, which in
this case is completely outside the table area.
It seems like there's an off-by-one error somewhere, but since my code
isn't the one calculating where to paint to control, I'm stumped as to
what the problem is. Aside from this problem, everything in the table is
functional normally (including the CellModifier, LabelProvider, and
ContentProvider). Thanks!
Preston
Linux and Win32
Eclipse 3.0.1
Java 1.5
|
|
|
Re: TableViewer Painting CellEditor One Cell To High [message #447568 is a reply to message #447416] |
Tue, 14 December 2004 21:04 |
Veronika Irvine Messages: 1272 Registered: July 2009 |
Senior Member |
|
|
You should enter a bug report against Platform SWT with code showing the
error.
Please specify which platform you are running on. If it is Linux GTK,
please give the exact version (e.g. rpm -q gtk2)
"Preston Lee" <plee@unicon.net> wrote in message
news:pan.2004.12.14.16.19.27.109170@unicon.net...
> I'm making use of TableViewers for almost all of my tables. In one
> particular case, the editor (be it a Text, Combo etc) is *always* drawn
> exactly one cell above where it should be. For example, if you click a
> cell in the first row, the editor is drawn on top of the table header. If
> there is no header, it still gets drawn one cell height above, which in
> this case is completely outside the table area.
>
> It seems like there's an off-by-one error somewhere, but since my code
> isn't the one calculating where to paint to control, I'm stumped as to
> what the problem is. Aside from this problem, everything in the table is
> functional normally (including the CellModifier, LabelProvider, and
> ContentProvider). Thanks!
>
> Preston
>
> Linux and Win32
> Eclipse 3.0.1
> Java 1.5
|
|
|
Powered by
FUDForum. Page generated in 0.02940 seconds