PDA

View Full Version : Argh. Can't get 0.94 working. Reverting to 0.93...



orangechicken
13 Sep 2010, 5:18 PM
Well, spent six hours today trying to move to 0.94 but unfortunately I have to get back to *productive* work.

The main issue is that some components are no longer rendering their items. Futzed with things -- such as adding a manual call to this.layout.layout() in an overridden show method -- but didn't get far.

We really need to have better release notes and better tracking of breaking issues. This is silly and frustrating.

raven77m
13 Sep 2010, 5:43 PM
Yea updating to .94 killed all my popups, layouts, and graphics also.
But I kinda thought that is why they call this software "Beta"?
:D

nosarious
13 Sep 2010, 9:14 PM
Make sure you are updating both the CSS and the js files. Changes take place in both.

orangechicken
13 Sep 2010, 9:14 PM
Totally. But hopefully a better process for letting us beta users (testers) know what MIGHT be broken would go along ways to mitigate frustration.

orangechicken
13 Sep 2010, 9:17 PM
Make sure you are updating both the CSS and the js files. Changes take place in both.

Definitely made sure of that. The issue seems to be that layout() on the component's layout is never being called. Maybe because setSize is never called either?

ueilat
14 Sep 2010, 2:46 AM
me too
I had reverted to 0.93
several commands are missing (tpl for container, id manual select).
The strange thingh is that if you look at the heading of JS file is very strange
0.93 was

Ext = {

version : '0.9.3',
versionDetail : {
major : 0,
minor : 9,
patch : 3
}
};

0.94 is

Ext = {
platformVersion: '0.1',
platformVersionDetail: {
major: 0,
minor: 1,
patch: 0
}
};

jmdesp
14 Sep 2010, 7:39 AM
You should try to be as specific as possible about the 0.9.4 problem, the 0.1 version thing has been talked about already, it's not a big matter.

So *which* component exactly are not rendering their item anymore ?

I see one regression in the Ajax JSONP sample : After I touch the JSONP button, the cards don't appear initially, but they do as soon as I touch the screen and do a slide movement, whatever direction (LeftRight, RightLeft, UpDown, DownUp. But just tapping is not enough). All other samples seem correct.

ueilat
14 Sep 2010, 8:26 AM
I'll be more precise...
my code for create container (perfectly working in 0.93 is )

blocchi[2]=new Ext.Container({
cls: 'listahome',
id: 'listahome1',
tpl: '<tpl for="."><div class="lista" onclick="javascript:lancialista({idnotizia},2,this)"><div class=testo1><b>{datanotizia}</b> {titolo}</div></div></tpl>',
monitorOrientation : false
});

The id field is not associated to my element (verified using the inspector tool of safari for windows so my app crash when I tried to call it using getElementById
if I comment the call with getelementById when I tried to update the container with this code

blocchi[2].update(memoria[genpaginap1].dati["news"]);
blocchi[2].doLayout();

nothingh happen
in 0.93 was ok

ueilat
16 Sep 2010, 12:12 AM
any news from the develoment team?
thanx

TommyMaintz
21 Sep 2010, 9:17 AM
With .95 and the latest source code I am not able to reproduce this. Can you test if the following code works for you?



Ext.setup({
tabletStartupScreen: 'tablet_startup.png',
phoneStartupScreen: 'phone_startup.png',
icon: 'icon.png',
glossOnIcon: false,
onReady: function() {
var panel = new Ext.Container({
cls: 'listahome',
id: 'listahome1',
fullscreen: true,
tpl: '<tpl for="."><div class="lista"><div class=testo1><b>{datanotizia}</b> {titolo}</div></div></tpl>'
});

panel.update([{
datanotizia: 'Item 1',
titolo: '1'
}, {
datanotizia: 'Item 2',
titolo: '2'
}, {
datanotizia: 'Item 2',
titolo: '3'
}]);
}
});

ueilat
21 Sep 2010, 1:52 PM
Your basic test worked also for me
I made a bit complex and similar to my sw and it worked
then I modified my SW to write only the necessary software. It doesn't work with 0.95 but it works for 0.93. And if you make the check you will see that id is missing for container blocchi[2]

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Fiorentina.it</title>

<!-- Ext Touch CSS -->
<script>
function loggo(cosa) {
console.log(cosa);
};
percorsobase='http://www.fiorentina.it/iphone/me2/';

</script>

<link rel="stylesheet" href="sencha-touch-beta-0.95/resources/css/ext-touch.css" type="text/css">





<!-- Ext Touch JS -->



<script type="text/javascript" src="sencha-touch-beta-0.95/ext-touch-debug.js"> </script>



<!-- Application JS -->
<script>
var blocchi=new Array();
var blocchimax=10;
for (var i=0;i<=blocchimax;i++) {
blocchi[i]=null;
};
var barrasencha=42;


Ext.setup({
tabletStartupScreen: 'tablet_startup.png',
phoneStartupScreen: 'phone_startup.png',
icon: 'icon.png',
glossOnIcon: false,
onReady: function() {



var modale=function(testo) {
if (testo!="") {
Ext.getBody().mask(false, '<div class="modale">'+ testo +'&hellip;</div>');
} else {
Ext.getBody().unmask();
}
};


var chiama=function(tipopaginax,parametrix) {
//loggo('chiamando');
modale('carico');
generapagina(tipopaginax,1,parametrix)
};


var generapagina=function(tipopagina,tiporigen,parametri){





blocchi[1]=new Ext.Container({
cls: 'titolihome',
html: 'News',
height: 20,
monitorOrientation : false
});
ct.add(blocchi[1]);
blocchi[2]=new Ext.Container({
cls: 'listahome',
id: 'listahome1',
tpl: '<tpl for="."><div class="lista" onclick="javascript:lancialista({idnotizia},2,this)"><div class=testo1><b>{datanotizia}</b> {titolo}</div></div></tpl>',
monitorOrientation : false
});
blocchi[6]=new Ext.Container({
height: (480-barrasencha-20-20)/2,
items: blocchi[2],
monitorOrientation : false
});
ct.add(blocchi[6]);
blocchi[3]=new Ext.Container({
cls: 'titolihome',
html: 'In primo piano',
height: 20,
monitorOrientation : false,
});
ct.add(blocchi[3]);
blocchi[4]=new Ext.Container({
cls: 'listahome',
id: 'listahome2',
tpl: '<tpl for="."><div class="lista" onclick="javascript:lancialista({idnotizia},2,this)"><div class=testo1><tpl if="foto"><img align=right src="{foto}"></tpl><b class=titoletti>{titolo}</b><br/>{descrizione}</div></div></tpl>',
monitorOrientation : false
});
blocchi[5]=new Ext.Container({
height: (480-barrasencha-20-20)/2,
items: blocchi[4],
monitorOrientation : false
});
ct.add(blocchi[5]);
barratop.insert(0,{ xtype: 'button', text: '?', ui: 'normal', handler: alert});
// barratop.insert(0,{ iconCls: 'info', ui: 'mask'});
barratop.insert(1, {xtype: 'spacer'});

barratop.insert(3, {xtype: 'spacer'});
barratop.insert(4,{ui: 'mask', iconCls: 'credit', handler: alert});
barratop.doLayout();
ct.doLayout();
//document.getElementById('selettore').setActive(0);
// scrollaPrivato(document.getElementById('listahome1'),document.getElementById('listahome1').parentNode,false,true,1);
// scrollaPrivato(document.getElementById('listahome2'),document.getElementById('listahome2').parentNode,false,true,1);
//alert(document.getElementById(blocchi[4].getEl().id).style.top);


blocchi[2].update([{
datanotizia: 'Item 1',
titolo: '1'
}, {
datanotizia: 'Item 2',
titolo: '2'
}, {
datanotizia: 'Item 2',
titolo: '3'
}]);
blocchi[2].doLayout();
// blocchi[3].add(memoria[genpaginap1].dati["altrenews"]);
// blocchi[3].doLayout();
blocchi[4].update([{
datanotizia: 'Item 1',
titolo: '1'
}, {
datanotizia: 'Item 2',
titolo: '2'
}, {
datanotizia: 'Item 2',
titolo: '3'
}]);
blocchi[4].doLayout();


modale('');

}
//**********************************+'





modale('carico');
//GESTISCO VARIABILI PERMANENTI
//localStorage.setItem("fontsize", 1);
//localStorage.clear();

document.body.innerHTML='';


//loggo('configurato');


barratop = new Ext.Toolbar({
// dock this toolbar at the top
ui: 'dark',
dock: 'bottom',
cls: 'barratop',
monitorOrientation: false /*,
items: [ {xtype: 'spacer',
id:'fisso1'} ,
{ html: '<img src="images/logo.png">',
xtype:'container',
centered:true,
id: 'fisso2'
},
{xtype: 'spacer',
id:'fisso3'}
] */
});


//QUESTO E' IL CONTENITORE PRINCIPALE
ct = new Ext.Panel({
fullscreen: true,
cls: 'sfondo',
dockedItems: barratop,
monitorOrientation: false

// onOrientationChange : function(orientation, w, h) {
// //loggo('ruoto ' + this.id+ ' - ' + orientation + ' ' + w + 'x' + h);
// }


});


//loggo('chiamo');

lanciatoInizio=true;
chiama(1,'');



//NKAlert(NKGetLibraryVersion());


}
});
</script>

</head>
<body> <h1>Application starting....</h1></body>
</html>