From e58678dc06fc57ee26ab6548e363fa62a3a6e266 Mon Sep 17 00:00:00 2001 From: "Frank A. Krueger" Date: Thu, 9 Nov 2017 13:26:45 -0800 Subject: [PATCH] Fix size of elements --- Ooui.Forms/VisualElementTracker.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Ooui.Forms/VisualElementTracker.cs b/Ooui.Forms/VisualElementTracker.cs index c92f360..504cf0d 100644 --- a/Ooui.Forms/VisualElementTracker.cs +++ b/Ooui.Forms/VisualElementTracker.cs @@ -145,10 +145,10 @@ namespace Ooui.Forms var target = new Rectangle (x, newY, width, height); uiview.Style.Position = "absolute"; - uiview.Style.Left = x; - uiview.Style.Top = newY; - uiview.Style.Right = x + width; - uiview.Style.Bottom = newY + height; + uiview.Style.Left = x + "px"; + uiview.Style.Top = newY + "px"; + uiview.Style.Width = width + "px"; + uiview.Style.Height = height + "px"; } else if (width <= 0 || height <= 0) { return;