Skip to content

Wasm: Clipping does not support wider than control itself #652

Closed

Description

@dr1rrb

I'm submitting a...

  • Bug report

Current behavior

If you set a Clip rectangle on a Grid which is larger than the actual size, children are still clipped.

Expected behavior

Controls can "overflow"

Minimal reproduction of the problem with instructions

<Grid Width="150" Height="150" BorderBrush="Red" BorderThickness="1">
	<Grid.Clip>
		<RectangleGeometry Rect="0,0,200,200" />
	</Grid.Clip>
	<ToggleButton
		Width="100"
		Height="100"
		Content="Hello world">
		<ToggleButton.RenderTransform>
			<TranslateTransform X="100" Y="100"/>
		</ToggleButton.RenderTransform>
	</ToggleButton>
</Grid>

Expected result:
image

Environment

Nuget Package: Uno.UI
Package Version(s): current master
Affected platform(s):
- [?] iOS
- [x] Android
- [?] WebAssembly
- [ ] Windows
- [ ] Build tasks

Visual Studio: _irrelevant_ 
Relevant plugins: _none_

Activity

  1. added
    kind/bug
    on Mar 6, 2019
  2. added
    platform/android 🤖
    on May 22, 2019
  3. self-assigned this
    on Oct 3, 2019
  4. changed the title [-]Clipping does not works on Android[/-] [+]Clipping does not works well on all platforms[/+] on Oct 3, 2019
  5. added
    platform/ios 🍎
    platform/wasm 🌐
    kind/regression
    on Oct 3, 2019
  6. carldebilly commented on Nov 5, 2019

    @carldebilly
    Member

    This issue need to be tested against latest version after merging #1726

  7. carldebilly commented on Nov 5, 2019

    @carldebilly
    Member

    Published in v2.0.512-dev.3728 https://www.nuget.org/packages/Uno.UI/2.0.512-dev.3728

    Build Mobile, Desktop and WebAssembly apps with C# and XAML. Today. Open source and professionally supported.
  8. carldebilly commented on Feb 4, 2020

    @carldebilly
    Member

    Fixed on iOS and Android platforms by PR #2481!

    ✔️ iOS

    image

    ✔️ Android

    image

    ❌ Wasm

    image

  9. changed the title [-]Clipping does not works well on all platforms[/-] [+]Wasm: Clipping does not support wider than control itself[/+] on Feb 4, 2020
  10. added a commit that references this issue on Feb 5, 2020
  11. removed their assignment
    on Feb 27, 2020
  12. carldebilly commented on Apr 17, 2020

    @carldebilly
    Member

    It could be related to the overflow:hideen CSS instruction. Should be replaced by a clipping mask as on other platforms.

  13. self-assigned this
    on Jun 19, 2020
  14. added this to the 3.1 milestone on Aug 28, 2020
  15. carldebilly commented on Sep 9, 2020

    @carldebilly
    Member

    The fix has been merged and will be published as Uno.UI v3.1.0-dev.241.

  16. added
    project/layout 🧱
    on Sep 21, 2020
  17. added a commit that references this issue on Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugkind/regressionplatform/android 🤖platform/ios 🍎platform/wasm 🌐project/layout 🧱

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions