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

Include border size in Frame's measurement #13419

Merged
merged 6 commits into from
Feb 23, 2023

Conversation

Redth
Copy link
Member

@Redth Redth commented Feb 17, 2023

Description of Change

Frame on windows may have its border clipped in some cases. I believe this is due to the border thickness not being considered in the handler's MeasureOverride. This PR adds the border thickness into the calculation.

UPDATE: iOS and Android need this treatment too. Android was confusingly incorrect since it was clipping the inner content and the border would still appear correctly, but the content was not measuring to account for the border space. iOS also. Updated the PR to address that too.

Issues Fixed

Fixes #9099

image

@Redth Redth marked this pull request as ready for review February 18, 2023 19:49
@Eilon Eilon added the area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter label Feb 21, 2023
Android renders seemingly fine because it clips the inner content instead of the border, but to be consistent with the other platforms, the border should take up space too in the measurement.
Similarly, iOS was working fine but not taking into account the border thickness as part of the content measuring, this makes it consistently doing so now.
@Redth Redth changed the title Include border size in windows MeasureOverride Include border size in Frame's measurement Feb 22, 2023
@PureWeen PureWeen merged commit edc1f71 into main Feb 23, 2023
@PureWeen PureWeen deleted the fix-9099-frame-border-bottom-windows branch February 23, 2023 04:07
@github-actions github-actions bot locked and limited conversation to collaborators Dec 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Frame missing its bottom edge
5 participants