private View bottomView = null;
private bool isTop = false;
private bool isBottom = false;
- private uint borderHeight = 0;
+ private float borderHeight = 0;
private int screenWidth = 0;
private int screenHeight = 0;
#endregion //Fields
borderInterface.OnCreated(borderView);
// Increase the window size as much as the border area.
- if (isTop) borderHeight += borderInterface.BorderHeight;
- if (isBottom) borderHeight += borderInterface.BorderHeight;
+ borderHeight = 0;
+ if (isTop) borderHeight += topView.SizeHeight;
+ if (isBottom) borderHeight += bottomView.SizeHeight;
// When running the app for the first time, if it runs in full size, do Maximize(true).
if (screenWidth != 0 && screenHeight != 0 &&
direction = BorderDirection.Top;
}
// check move
- else if ((yPosition > WindowSize.Height) || (isTop == true && yPosition < borderInterface.BorderHeight))
+ else if ((yPosition > WindowSize.Height) || (isTop == true && yPosition < topView.SizeHeight))
{
direction = BorderDirection.Move;
}
borderInterface.OnResized(resizeWidth, resizeHeight);
+ // reset borderHeight
+ borderHeight = 0;
+ if (isTop) borderHeight += topView.SizeHeight;
+ if (isBottom) borderHeight += bottomView.SizeHeight;
+
if (borderInterface.OverlayMode == true && IsMaximized() == true)
{
Interop.ActorInternal.SetSize(GetBorderWindowRootLayer().SwigCPtr, resizeWidth, resizeHeight);
}
else
{
- uint height = (isTop == true) ? borderInterface.BorderHeight : 0;
+ float height = (isTop == true) ? topView.SizeHeight : 0;
Interop.ActorInternal.SetSize(GetBorderWindowRootLayer().SwigCPtr, resizeWidth, resizeHeight);
Interop.ActorInternal.SetSize(GetBorderWindowBottomLayer().SwigCPtr, resizeWidth + borderInterface.BorderLineThickness * 2, resizeHeight + borderHeight + borderInterface.BorderLineThickness * 2);
Interop.ActorInternal.SetPosition(GetBorderWindowRootLayer().SwigCPtr, 0, height + borderInterface.BorderLineThickness);
Interop.Actor.SetAnchorPoint(borderWindowRootLayer.SwigCPtr, topCentor.SwigCPtr);
Interop.Actor.Add(rootLayer.SwigCPtr, borderWindowRootLayer.SwigCPtr);
Interop.ActorInternal.SetSize(borderWindowRootLayer.SwigCPtr, WindowSize.Width, WindowSize.Height - borderHeight - borderInterface.BorderLineThickness * 2);
- uint height = (isTop == true) ? borderInterface.BorderHeight : 0;
+ float height = (isTop == true) ? topView.SizeHeight : 0;
Interop.ActorInternal.SetPosition(borderWindowRootLayer.SwigCPtr, 0, height + borderInterface.BorderLineThickness);
using PropertyValue propertyValue = new Tizen.NUI.PropertyValue((int)Tizen.NUI.ClippingModeType.ClipToBoundingBox);
Tizen.NUI.Object.SetProperty(borderWindowRootLayer.SwigCPtr, Tizen.NUI.BaseComponents.View.Property.ClippingMode, propertyValue);
private static readonly string DarkRightCornerIcon = ResourcePath + "dark_rightCorner.png";
- private const uint DefaultHeight = 50;
+ private const float DefaultHeight = 50;
private const uint DefaultLineThickness = 5;
private const uint DefaultTouchThickness = 20;
private static readonly Color DefaultBackgroundColor = new Color(1, 1, 1, 0.3f);
/// <summary>
/// The height of the border.
+ /// This value is the initial value used when creating borders.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
- public uint BorderHeight {get; set;}
+ public float BorderHeight {get; set;}
/// <summary>
/// The minimum size by which the window will small.