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

Graphical bug in Skia version on text fields when updating the value. #2474

Open
4 tasks done
ryankopf opened this issue Jun 21, 2024 · 1 comment
Open
4 tasks done
Labels
bug Something isn't working

Comments

@ryankopf
Copy link

Is your issue REALLY a bug?

  • My issue is indeed a bug!
  • I am not crazy! I will not fill out this form just to ask a question or request a feature. Pinky promise.

Is there an existing issue for this?

  • I have searched the existing issues.

Is this issue related to iced?

  • My hardware is compatible and my graphics drivers are up-to-date.

What happened?

Using the skia crate, text gets clipped oddly.

https://imgur.com/a/jRQpO3S

I am building a kiosk. When clicking a button on the simulated keyboard (these are all Iced buttons) to update the search field, the text is cropped. The graphical bug goes away if you move your mouse over the text field.

I've determined the issue is the clip_mask, as when I set it to "None" in the iced codebase, this issue no longer happens. I'll try to figure out exactly what's happening and why.

What is the expected behavior?

The full text should appear.

Version

master

Operating System

Windows

Do you have any log output?

No response

@ryankopf ryankopf added the bug Something isn't working label Jun 21, 2024
@ryankopf
Copy link
Author

Debugging a bit, I found the height of the text is getting clipped where it should be 39.0 height, instead it's getting clipped to 19.5. I'll have to dive a lot deeper to figure out why.

Position: Point { x: 40.0, y: 59.5 }
Original paragraph bounds: Size { width: 17.666016, height: 39.0 }
Clip bounds: Rectangle { x: 40.0, y: 40.0, width: 1200.0, height: 39.0 }
new_rectangle: Some(Rectangle { x: 40.0, y: 59.5, width: 17.666016, height: 19.5 })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant