diff --git a/XenAdmin/Wizards/NewVMWizard/Page_CpuMem.cs b/XenAdmin/Wizards/NewVMWizard/Page_CpuMem.cs index 18bbcbdd2..9f78788ec 100644 --- a/XenAdmin/Wizards/NewVMWizard/Page_CpuMem.cs +++ b/XenAdmin/Wizards/NewVMWizard/Page_CpuMem.cs @@ -364,17 +364,17 @@ namespace XenAdmin.Wizards.NewVMWizard if (max_mem_total_host != null && SelectedMemoryDynamicMin > max_mem_total) { ErrorPanel.Visible = true; - ErrorLabel.Text = string.Format(Messages.NEWVMWIZARD_CPUMEMPAGE_MEMORYWARN1, Helpers.GetName(max_mem_total_host), Util.MemorySizeStringSuitableUnits(max_mem_total, false)); + ErrorLabel.Text = string.Format(Messages.NEWVMWIZARD_CPUMEMPAGE_MEMORYWARN1, Helpers.GetName(max_mem_total_host).Ellipsise(50), Util.MemorySizeStringSuitableUnits(max_mem_total, false)); } else if (max_mem_free_host != null && SelectedMemoryDynamicMin > max_mem_free) { ErrorPanel.Visible = true; - ErrorLabel.Text = string.Format(Messages.NEWVMWIZARD_CPUMEMPAGE_MEMORYWARN2, Helpers.GetName(max_mem_free_host), Util.MemorySizeStringSuitableUnits(max_mem_free, false)); + ErrorLabel.Text = string.Format(Messages.NEWVMWIZARD_CPUMEMPAGE_MEMORYWARN2, Helpers.GetName(max_mem_free_host).Ellipsise(50), Util.MemorySizeStringSuitableUnits(max_mem_free, false)); } else if (max_vcpus_host != null && SelectedVcpusMax > max_vcpus) { ErrorPanel.Visible = true; - ErrorLabel.Text = string.Format(Messages.NEWVMWIZARD_CPUMEMPAGE_VCPUSWARN, Helpers.GetName(max_vcpus_host), max_vcpus); + ErrorLabel.Text = string.Format(Messages.NEWVMWIZARD_CPUMEMPAGE_VCPUSWARN, Helpers.GetName(max_vcpus_host).Ellipsise(50), max_vcpus); } else { diff --git a/XenAdmin/Wizards/NewVMWizard/Page_CpuMem.resx b/XenAdmin/Wizards/NewVMWizard/Page_CpuMem.resx index 769c43999..75c19f632 100644 --- a/XenAdmin/Wizards/NewVMWizard/Page_CpuMem.resx +++ b/XenAdmin/Wizards/NewVMWizard/Page_CpuMem.resx @@ -478,7 +478,7 @@ NoControl - 3, 3 + 3, 6 16, 16