mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 15:29:26 +01:00
CP-36392: Removed block that is never hit:
The situation described in the comment is not applicable as scaling does not change outside the UI thread, and OnResize() does call SetupScaling(). Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
parent
3c4808a689
commit
c28bb4b34c
@ -1361,14 +1361,6 @@ namespace XenAdmin.ConsoleView
|
||||
AutoScrollMinSize = new Size(0, 0);
|
||||
}
|
||||
|
||||
// The change of AutoScrollMinSize can trigger a resize event, which in turn can trigger
|
||||
// scaling to be turned off. If this happens, restart this calculation altogether.
|
||||
if (scaling)
|
||||
{
|
||||
SetupScaling();
|
||||
return;
|
||||
}
|
||||
|
||||
AutoScroll = true;
|
||||
|
||||
if (Size.Height >= (displayBorder ? DesktopSize.Height + BORDER_PADDING + BORDER_PADDING : DesktopSize.Height))
|
||||
|
Loading…
Reference in New Issue
Block a user