]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: qemu/HW: reformat comment to better use awailable text-width
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 2 Jul 2021 09:46:01 +0000 (11:46 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 2 Jul 2021 09:46:01 +0000 (11:46 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/qemu/HardwareView.js

index 200e3c2844c40f2ea20da0fda17519628a42ecf2..bfe0a222edd5e4202969178eac71de65da404aa5 100644 (file)
@@ -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);