pve-manager/www/manager6/window/NotesEdit.js
Thomas Lamprecht 5bbe58a5bd ui: notes editor: increase edit window size from 600x400 to 800x600
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-21 16:50:11 +02:00

33 lines
524 B
JavaScript

Ext.define('PVE.window.NotesEdit', {
extend: 'Proxmox.window.Edit',
title: gettext('Notes'),
width: 800,
height: '600px',
resizable: true,
layout: 'fit',
autoLoad: true,
defaultButton: undefined,
setMaxLength: function(maxLength) {
let me = this;
let area = me.down('textarea[name="description"]');
area.maxLength = maxLength;
area.validate();
return me;
},
items: {
xtype: 'textarea',
name: 'description',
height: '100%',
value: '',
hideLabel: true,
},
});