File tree 2 files changed +4
-2
lines changed
src/FubarDev.LayoutEngine.WinForms/HandleElements
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ internal IWin32Window RootWindow
32
32
33
33
public string ? Name { get ; set ; }
34
34
public Point Location => Bounds . Location ;
35
- public Rectangle Bounds
35
+ public virtual Rectangle Bounds
36
36
{
37
37
get
38
38
{
@@ -81,7 +81,7 @@ public void SetBounds(Rectangle bounds)
81
81
_bounds = bounds ;
82
82
}
83
83
84
- private static Rectangle GetBounds ( IntPtr handle )
84
+ protected static Rectangle GetBounds ( IntPtr handle )
85
85
{
86
86
if ( ! WindowsApi . GetWindowRect ( handle , out var rect ) )
87
87
{
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ public HwndLayoutRoot(IWin32Window window)
19
19
RootWindow = window ;
20
20
}
21
21
22
+ public override Rectangle Bounds => GetBounds ( Handle ) ;
23
+
22
24
public Size ClientSize => GetClientRect ( Handle ) . Size ;
23
25
public Rectangle DisplayRectangle => GetDisplayRectangle ( Handle ) ;
24
26
You can’t perform that action at this time.
0 commit comments