CA-375740: VMSS has no other_config, hence no custom fields can be set.

Also, allow for a longer field label before ellipsization takes over.

Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
This commit is contained in:
Konstantina Chremmou 2023-08-15 10:55:14 +01:00
parent 2a81e63eba
commit 78396156ea
2 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ namespace XenAdmin.Dialogs
ShowTab(GeneralEditPage = new GeneralEditPage());
if (!isVmAppliance)
if (!isVmAppliance && !isVmss)
ShowTab(CustomFieldsEditPage = new CustomFieldsDisplayPage {AutoScroll = true});
if (isVm)

View File

@ -342,7 +342,7 @@ namespace XenAdmin.SettingsPanels
return new Label
{
Anchor = AnchorStyles.Left | AnchorStyles.Right,
Text = customFieldDefinition.Name.EscapeAmpersands().Ellipsise(25),
Text = customFieldDefinition.Name.EscapeAmpersands().Ellipsise(45),
Font = Program.DefaultFont,
AutoSize = true,
AutoEllipsis = false