Skip to content

Commit

Permalink
[Tizen] Fix ShapeViewHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
rookiejava committed Nov 19, 2021
1 parent fb19770 commit 279fb96
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Core/src/Handlers/ShapeView/ShapeViewHandler.Tizen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@ namespace Microsoft.Maui.Handlers
{
public partial class ShapeViewHandler : ViewHandler<IShapeView, MauiShapeView>
{
protected virtual double MinimumSize => 40d;

protected override MauiShapeView CreateNativeView()
{
return new MauiShapeView(NativeParent!);
return new MauiShapeView(NativeParent!)
{
MinimumWidth = MinimumSize.ToScaledPixel(),
MinimumHeight = MinimumSize.ToScaledPixel()
};
}

public static void MapShape(ShapeViewHandler handler, IShapeView shapeView)
Expand Down

0 comments on commit 279fb96

Please sign in to comment.