fix: 收敛旧模块资源释放与诊断
This commit is contained in:
@@ -16,7 +16,6 @@ namespace Lskj.PubBrower2
|
||||
public previewFrm()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.SizeChanged += OnSizeChanged;
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:窗口加载</para>
|
||||
@@ -49,18 +48,5 @@ namespace Lskj.PubBrower2
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 窗体大小改变时
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void OnSizeChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (this.moduleWebView.cefBrowserSettings != null)
|
||||
{
|
||||
var handle = this.moduleWebView.cefBrowserSettings.GetHost().GetWindowHandle();
|
||||
this.moduleWebView.ResizeWindow(handle, this.Width, this.Height);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user