Jump to content

Treegrid rows not correctly painted: bug?


PascalVBr

Recommended Posts

Hi,

I have a TuniDBTreeGrid object with quite a lot of rows/nodes.

The 2 columns on the left are locked, the other ones are not. The 2 columns on the left have 16x16 images in them, the other ones are text only.

What I have noticed is that, when I expand one of the bottom root nodes,  the left (locked) and right part of the rows are misaligned.

The row height is not exactly the same for the locked part and thus there is an increasing gap. 

I think this is a bug in the row height calculation of the treegrid. The question is how to solve it?

Link to comment
Share on other sites

Yes, I am using the latest trial build.

I don't know how the treegrid works internally, but based on the behaviour I see it looks like it is internally using 2 grids (one for the locked columns, one for the non locked columns). It looks like the rowheight is not always synchronized properly between both. 

I found a workaround by using a dummy non locked column with a fully transparent 16x16 png and setting its width=0. Then the row height is always the same as for the locked part.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...