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

Rectangle Widget Minimum width #44

Open
Elpra-Bozas opened this issue Dec 16, 2024 · 3 comments
Open

Rectangle Widget Minimum width #44

Elpra-Bozas opened this issue Dec 16, 2024 · 3 comments

Comments

@Elpra-Bozas
Copy link

We noticed that rendering rectangles with size < 4 throws an exception and causes an MCU reset. Is there a limitation, is it related to other object properties? We see this issue on Legato 2.5.0b

@MCHP-MCU32DC0
Copy link

Hi - what device (MCU) are you using?

@Elpra-Bozas
Copy link
Author

Hello,
is there a chance of a relation between the rendering process and the MCU being used? We are using a 800x480 TFT, targeting an SSD1963 controller through the EBI interface of a PIC32MZ2048EFM144.

@MCHP-MCU32DC0
Copy link

MCHP-MCU32DC0 commented Dec 20, 2024

Hi - i'm able to reproduce this on the MGS simulator, so this is not dependent on the MCU.

Looks like the math is off when the side thickness (x2) exceeds the width or height of the widget. Ex. the default thickness of the each border is 2pixels (4pix total), which means that it exceeds the 3pixel size of the entire widget. If I set the thickness to 1, the issue doesn't occur.

So the widget size should be greater the thickness x 2.

For now, please configure the widget so the total thickness does not exceed the widget size on either side. We'll work on a fix.

Thank you for reporting the issue.

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

No branches or pull requests

2 participants