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

Border issue #343 #352

Merged
merged 4 commits into from
Sep 23, 2024

Conversation

OlivierMiracle
Copy link
Contributor

@OlivierMiracle OlivierMiracle commented Aug 15, 2024

A fix of #343 , caused by multiplying by proportion variable and supposedly wrong rounding.

It adds private method to properly calculate the dimension of children and unit tests to check whether the sum of the children adds up to the dimensions of the parent.

border-issue

Fixes #343

…ulation

Adds the unit tests to check whether children has proper dimensions
@OlivierMiracle OlivierMiracle marked this pull request as draft August 15, 2024 12:24
@OlivierMiracle
Copy link
Contributor Author

The solution I wrote about in the issue is wrong, sometimes fractions can add up to more than one pixel. New solution adds fractions to a point where a whole pixel can be added to the width/height of the child control. It assumes that parent height/width is a whole number, so it does not check if there is a remaining fraction at the end of the loop.

@OlivierMiracle OlivierMiracle marked this pull request as ready for review August 15, 2024 12:36
@wieslawsoltes wieslawsoltes merged commit 8853274 into wieslawsoltes:master Sep 23, 2024
4 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Panel border is invisible sometimes.
2 participants