ui: qemu/HW: reformat comment to better use awailable text-width

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-07-02 11:46:01 +02:00
parent 4fe1ea255a
commit 897c1fc84c

View File

@ -484,9 +484,8 @@ Ext.define('PVE.qemu.HardwareView', {
}, },
listeners: { listeners: {
render: function(btn) { render: function(btn) {
// hack: calculate an optimal button width on first display // hack: calculate the max button width on first display to prevent the whole
// to prevent the whole toolbar to move when we switch // toolbar to move when we switch between the "Remove" and "Detach" labels
// between the "Remove" and "Detach" labels
var def = btn.getSize().width; var def = btn.getSize().width;
btn.setText(btn.altText); btn.setText(btn.altText);