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

The lines have uneven thickness #30

Open
XMJLXMJL opened this issue Oct 19, 2023 · 3 comments
Open

The lines have uneven thickness #30

XMJLXMJL opened this issue Oct 19, 2023 · 3 comments
Labels
investigation Further investigation needed

Comments

@XMJLXMJL
Copy link

Maybe due to the boundary constraints of the "RichItemContainer", some of the edges of the lines get clipped, which makes it look a bit weird. Is there an easy fix for this?
RichCanvas Issue3
RichCanvas Issue15

@mircea21S
Copy link
Owner

mircea21S commented Oct 27, 2023

This could be caused by the Container that holds the ContentPresenter, I am not 100% sure. You can try to put a canvas behind your line when styling it, then do the logic to draw using TopChanged and LeftChanged events to draw it on that mini canvas. Have a look at this for more information: http://drwpf.com/blog/2007/12/28/cliptoboundsmaybe/
I will try to investigate it also and come back with any relevant solution or information if it's the case.

@mircea21S mircea21S added the investigation Further investigation needed label Oct 27, 2023
@XMJLXMJL
Copy link
Author

XMJLXMJL commented Oct 30, 2023

Cool! Amazing! It's fine now!
Snipaste_2023-10-30_17-40-28
Should I close this issue?

@mircea21S
Copy link
Owner

Don't close this yet, I want to investigate a bit more, but I think I won't be able to do anything as this is the design I will keep: the user is responsible for whatever displays inside RichItemContianer.

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

No branches or pull requests

2 participants