protected override Size ArrangeOverride(Size rpFinalSize)
{
var rWidth = rpFinalSize.Width;
var rHeight = rpFinalSize.Height;
if (IsExtracted)
{
var rZoom = DpiUtil.ScaleX + Preference.Instance.Browser.Zoom - 1.0;
rWidth = Math.Min(rWidth, GameConstants.GameWidth * rZoom / DpiUtil.ScaleX / DpiUtil.ScaleX);
rHeight = Math.Min(rHeight, GameConstants.GameHeight * rZoom / DpiUtil.ScaleY / DpiUtil.ScaleY);
}
NativeMethods.User32.PostMessageW(r_Handle, CommunicatorMessages.ResizeBrowserWindow, (IntPtr)rWidth, (IntPtr)rHeight);
return new Size(rWidth, rHeight);
}
protected override Size MeasureOverride(Size rpConstraint)