* replace scrollable with autoScroll and move to prototype body
* use 'activate' to load store on F5
* do not set a height on the StatusView component: it hides some rows,
and the framework sets a good working default height
* replace deprecated 'rows' parameter in textareafield with
height in pixels
Ext.define('PVE.panel.NotesView', {
extend: 'Ext.panel.Panel',
Ext.define('PVE.panel.NotesView', {
extend: 'Ext.panel.Panel',
+ title: gettext("Notes"),
+ style: 'padding-left:10px',
+ bodyStyle: 'white-space:pre',
+ bodyPadding: 10,
+ scrollable: true,
+
load: function() {
var me = this;
load: function() {
var me = this;
- title: gettext("Notes"),
- style: 'padding-left:10px',
- bodyStyle: 'white-space:pre',
- bodyPadding: 10,
- autoScroll: true,
listeners: {
render: function(c) {
c.el.on('dblclick', function() {
listeners: {
render: function(c) {
c.el.on('dblclick', function() {
defaults: { statusStore: me.statusStore },
items: [
{
defaults: { statusStore: me.statusStore },
items: [
{
- title: gettext('SummaryTODO'),
- xtype: 'panel',
-// title: gettext('Summary'),
-// xtype: 'pveQemuSummary',
+ title: gettext('Summary'),
+ xtype: 'pveQemuSummary',
itemId: 'summary'
} ]
});
itemId: 'summary'
} ]
});
Ext.applyIf(me, {
cwidth1: 150,
Ext.applyIf(me, {
cwidth1: 150,
extend: 'Ext.panel.Panel',
alias: 'widget.pveQemuSummary',
extend: 'Ext.panel.Panel',
alias: 'widget.pveQemuSummary',
+ tbar: [ '->', { xtype: 'pveRRDTypeSelector' } ],
+ scrollable: true,
+ bodyStyle: 'padding:10px',
+ defaults: {
+ style: 'padding-top:10px',
+ width: 800
+ },
+
initComponent: function() {
var me = this;
initComponent: function() {
var me = this;
- tbar: [ '->', { xtype: 'pveRRDTypeSelector' } ],
- autoScroll: true,
- bodyStyle: 'padding:10px',
- defaults: {
- style: 'padding-top:10px',
- width: 800
- },
items: [
{
style: 'padding-top:0px',
items: [
{
style: 'padding-top:0px',
- me.on('show', function() {
+ me.on('activate', function() {
items: {
xtype: 'textarea',
name: 'description',
items: {
xtype: 'textarea',
name: 'description',
value: '',
hideLabel: true
}
value: '',
hideLabel: true
}