Skip to content

Commit

Permalink
dont clip if component is root
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Jul 7, 2023
1 parent 0ea9e67 commit 43a8463
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions haxe/ui/backend/ComponentImpl.hx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ class ComponentImpl extends ComponentBase {

private var _mask:Mask = null;
private override function handleClipRect(value:Rectangle) {
if (this.parentComponent == null) {
return;
}
if (value != null) {
if (_mask == null) {
_mask = new Mask(Std.int(value.width * Toolkit.scaleX), Std.int(value.height * Toolkit.scaleY), this.parentComponent);
Expand Down

0 comments on commit 43a8463

Please sign in to comment.