PDA

View Full Version : Desktop, maximized Window, tabpanel, GridPanel invalid height



siamese
17 Mar 2014, 5:57 AM
\ext-3.4.1\examples\desktop\sample.js
48325
open

48326

valid height on resize window

48327

Gary Schlosberg
21 Mar 2014, 3:03 PM
Thanks for the report. I couldn't get your code to run. Can you please post a Fiddle which reproduces the issue?
https://fiddle.sencha.com/#home

siamese
23 Mar 2014, 11:22 PM
sample.zip = sample.js
replace sample.js for

js
http://dev.sencha.com/deploy/ext-3.4.0/examples/desktop/sample.js
example
http://dev.sencha.com/deploy/ext-3.4.0/examples/desktop/desktop.html

examples/desktop
css\
images\
js\
wallpapers\
credits.txt
desktop.html
sample.js

Gary Schlosberg
30 Apr 2014, 7:49 PM
Can you provide more details on what you mean by invalid height? I'm able to run that example, but I'm not clear on what needs to be done once the gridpanel is maximized.

siamese
4 May 2014, 11:29 PM
Can you provide more details on what you mean by invalid height? I'm able to run that example, but I'm not clear on what needs to be done once the gridpanel is maximized.

1. change sample.js from
http://dev.sencha.com/deploy/ext-3.4.0/examples/desktop/sample.js

diff


@@ -68,12 +82,17 @@
shim:false,
animCollapse:false,
constrainHeader:true,
-
+ maximized: true,
layout: 'fit',
- items:
+ items: [{
+ xtype: 'tabpanel'
+ ,activeTab : 0
+ ,border: false
+ ,items: [
new Ext.grid.GridPanel({
+ title: 'tab1',
border:false,
- ds: new Ext.data.Store({
+ ds: store = new Ext.data.Store({
reader: new Ext.data.ArrayReader({}, [
{name: 'company'},
{name: 'price', type: 'float'},
@@ -94,6 +113,13 @@
forceFit:true
},
//autoExpandColumn:'company',
+
+ bbar: new Ext.PagingToolbar({
+ pageSize: 50
+ ,store: store
+ ,displayInfo: true
+ }),
+

tbar:[{
text:'Add Something',
@@ -109,6 +135,9 @@
iconCls:'remove'
}]
})
+ ]
+ }]
+
});
}
win.show();


2. after window is opened
48905

3. after resize browser window
48906