From 897c1fc84c0677b43ae16ce6406c5f9765b00cc6 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 2 Jul 2021 11:46:01 +0200 Subject: [PATCH] ui: qemu/HW: reformat comment to better use awailable text-width Signed-off-by: Thomas Lamprecht --- www/manager6/qemu/HardwareView.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/www/manager6/qemu/HardwareView.js b/www/manager6/qemu/HardwareView.js index 200e3c28..bfe0a222 100644 --- a/www/manager6/qemu/HardwareView.js +++ b/www/manager6/qemu/HardwareView.js @@ -484,9 +484,8 @@ Ext.define('PVE.qemu.HardwareView', { }, listeners: { render: function(btn) { - // hack: calculate an optimal button width on first display - // to prevent the whole toolbar to move when we switch - // between the "Remove" and "Detach" labels + // hack: calculate the max button width on first display to prevent the whole + // toolbar to move when we switch between the "Remove" and "Detach" labels var def = btn.getSize().width; btn.setText(btn.altText);