开发者

Remove Gap of a Cell inside AdvancedDataGrid

开发者 https://www.devze.com 2023-03-30 06:44 出处:网络
I created an item renderer for a advanced datagrid and decided to put color on some of the cells. However the result comes with a vertical gap between the colored cell ( you can notice a big gap of wh

I created an item renderer for a advanced datagrid and decided to put color on some of the cells. However the result comes with a vertical gap between the colored cell ( you can notice a big gap of white lines between the red cells on the screenshot)

Any idea how to remove this?

For the coloring of cell, I follow this tut开发者_如何学JAVAorial link.

Remove Gap of a Cell inside AdvancedDataGrid


Can you set paddingBottom and paddingTop to 0? Docs make me think that these two properties control the gap.


What happens if you try replacing g.drawRect(0, 0, unscaledWidth, unscaledHeight) with g.drawRect(0, -2, unscaledWidth, unscaledHeight+3)?

0

精彩评论

暂无评论...
验证码 换一张
取 消