CP-6317: Importing from branch clearwater-ln.

# HG changeset patch
# User Mihaela Stoica <Mihaela.Stoica@citrix.com>
# Date 1377013845 -3600
# Node ID a47a556a4ebb1abda620cfe1d79bba4292eaff8f
# Parent  cc0505085de1e5f19326e13d74ec5542ce006080
[CA-92517] , [CA-112376] & [CA-112387] : Fixed the truncation in the CustomTreeView control
caused by wrong font being used in the calculation of scrollbar width.

Added a call to recalculate scrollbox width after the font used for description is changed.
This fixes the truncation in the following dialogs: Move VM, Move Virtual Disk, New Pool, Server Status Report.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
Konstantina Chremmou 2013-09-26 14:37:47 +01:00
parent 36e5225039
commit 90847387e1

View File

@ -112,6 +112,7 @@ namespace XenAdmin.Controls
if (_descriptionFont != null)
_descriptionFont.Dispose();
_descriptionFont = new Font(value.FontFamily, value.Size - 1);
RecalculateWidth();
}
}