Skip to content

[Android] TranslationY out of screen creates broken layout padding #37418

Description

@FinnKr

Description

Setting the TranslationY of a component to a value outside the screen at the bottom (even partially) breaks the layout on Android.

In the specific use case I am creating a kind of "Bottomsheet" component inside a modal page which will slide up from the bottom of the screen when opened.

On iOS everything looks fine but on Android there is a gap at the top of the element which should not be there:

Android:

Screen.Recording.2026-08-14.at.11.45.52.mov

iOS:

Screen.Recording.2026-08-14.at.11.42.29.mov

Steps to Reproduce

  1. Clone reproduction repository
  2. Run solution on Android
  3. Tap on "Open Bottom Sheet"

Actual result:
The component has a gap/padding at the top

Image

Expected Result:
The component has no gap/padding at the top (as on iOS)

Image

Link to public reproduction project repository

https://github.com/FinnKr/MauiTranslateYAndroidLayoutIssues

Version with bug

10.0.90

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

10.0.31

Affected platforms

Android

Affected platform versions

Android 16

Did you find any workaround?

No response

Relevant log output

Activity

  1. added
    t/bug
    on Aug 14, 2026
  2. added
    area-layout
    on Aug 14, 2026
  3. FinnKr commented on Aug 14, 2026

    @FinnKr
    Author

    Simply setting the TranslationY of the component to a value so that its placed (partially) outside the screen breaks the layout:

    Image
  4. TamilarasanSF4853 commented on Aug 14, 2026

    @TamilarasanSF4853
    Contributor

    This issue has been validated in Visual Studio Code 1.133.0 with .NET MAUI versions 10.0.0, 10.0.31, 10.0.40, 10.0.50 and 10.0.90. It can be reproduced on the Android platform from version 10.0.40.

    10.0.31 10.0.40
    Image Image
  5. added
    s/verified
    s/triaged
    i/regression
    on Aug 14, 2026
  6. added a commit that references this issue on Aug 16, 2026
  7. kubaflo commented on Aug 16, 2026

    @kubaflo
    Contributor

    I independently reran the generated reproduction test from draft PR #37467 against baseline 604d9de36e05a40c36ab05cdcd68f2c6286fa260.

    Result: the test is correctly detecting the reported android behavior.

    • Runtime: emulator-5554, API 30
    • Exact test: Microsoft.Maui.DeviceTests.Issue37418.ResettingOffscreenTranslationDoesNotAddTopGap
    • Isolation: 1 test executed, 1 failed, 0 unrelated tests
    • Observed assertion: The bottom sheet must not retain a top gap after TranslationY is reset to zero.

    The failure came from the intended assertion, not build, launch, timeout, or device infrastructure. Original reproduction evidence: pipeline run.

  8. added a commit that references this issue on Aug 16, 2026
  9. 23 remaining items

  10. added 4 commits that reference this issue on Oct 3, 2026
    dfe0e2b
    992c08b
    9cf9ccc
    327cc62
  11. locked and limited conversation to collaborators on Oct 8, 2026
  12. added 9 commits that reference this issue on Oct 13, 2026
    5b22ab5
    142d231
    a47e895
    0cafffc
    e05b5d3
    37f8fa0
    fcd3bdb
    2dad2b9
    98acfac
  13. added a commit that references this issue on Oct 28, 2026
    26acf1b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-layouti/regressionpartner/syncfusionplatform/androidregressed-in-10.0.40s/triageds/verifiedt/bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions