Fix size of elements
This commit is contained in:
parent
a887133288
commit
e58678dc06
|
@ -145,10 +145,10 @@ namespace Ooui.Forms
|
||||||
var target = new Rectangle (x, newY, width, height);
|
var target = new Rectangle (x, newY, width, height);
|
||||||
|
|
||||||
uiview.Style.Position = "absolute";
|
uiview.Style.Position = "absolute";
|
||||||
uiview.Style.Left = x;
|
uiview.Style.Left = x + "px";
|
||||||
uiview.Style.Top = newY;
|
uiview.Style.Top = newY + "px";
|
||||||
uiview.Style.Right = x + width;
|
uiview.Style.Width = width + "px";
|
||||||
uiview.Style.Bottom = newY + height;
|
uiview.Style.Height = height + "px";
|
||||||
}
|
}
|
||||||
else if (width <= 0 || height <= 0) {
|
else if (width <= 0 || height <= 0) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue