Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

White lines getting draw on Grid #158

Open
vasu-vvp opened this issue Mar 15, 2018 · 4 comments
Open

White lines getting draw on Grid #158

vasu-vvp opened this issue Mar 15, 2018 · 4 comments

Comments

@vasu-vvp
Copy link

White lines are getting draw in grid even if the draw lines is false.
Grid.setDrawLines(false, false)

I can not set line size 0 because it caused the problem for resizing the grid. When line size is 0 then this problem does not occurs but while performing the resize on grid caption causes problem. It does not works smoothly if line size is 0.

refer
image
How can prevent this white line to be drawn on grid.
I tried to override grids PaintNet() method and kept this as empty. still these line are getting drawn.
What could be the problem ?

Thanks.

@vasu-vvp
Copy link
Author

I think linesize needs to be added whilte painting the background and filling the rect of cell in method paintData.

I tried to modify the code in paintData method as follows (Else part)
image

@barmalei
Copy link
Owner

Have you tried to call "grid.setLineSize(0)" ?

@vasu-vvp
Copy link
Author

Yes, When "grid.setLineSize(0)" is called then issue does not observed. But

when lineSize is '0' then it caused the problem for resizing the grid. while performing the resizing using mouse drag on grid caption causes problem. It does not works smoothly if line size is 0. It works perfect when grid.setLineSize(1).

@barmalei
Copy link
Owner

Strange, actually the sizing of grid caption should not depend on lineSize. To detect the sizing area caption component uses "activeAreaSize" property. I have tried test case (set line size to zero) with GridCaption component and have not seen a problem. What does it mean "It does not works smoothly" ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants