PDA

View Full Version : [FIXED-234] Pack justify get broken between 0.91 an 0.93



gabrielstuff
17 Aug 2010, 6:56 PM
Sencha Touch version tested:

0.93

only default ext-all.css


Platform tested against:

iOS 3.x


Description:

The justify method doesn't work anymore on button.


Test Case:



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

onReady: function() {
var tpl = Ext.XTemplate.from('weather');

var makeAjaxRequest = function() {
Ext.Ajax.request({
url: 'test.json',
success: function(response, opts) {
Ext.getCmp('content').update(response.responseText);
Ext.getCmp('status').setTitle('Static test.json file loaded');
}
})
};

var makeJSONPRequest = function() {
Ext.util.JSONP.request({
url: 'http://www.worldweatheronline.com/feed/weather.ashx',
callbackKey: 'callback',
params: {
key: '23f6a0ab24185952101705',
// palo alto
q: '94301',
format: 'json',
num_of_days: 5
},
callback: function(result) {
var weather = result.data.weather;
if (weather) {
var html = tpl.applyTemplate(weather);
Ext.getCmp('content').update(html);
}
else {
alert('There was an error retrieving the weather.');
}
Ext.getCmp('status').setTitle('Palo Alto, CA Weather');
}
})
};

new Ext.Panel({
fullscreen: true,
id: 'content',
scroll: 'vertical',
dockedItems: [{
xtype: 'toolbar',
layout: {
pack: 'justify',
},
dock: 'top',
items: [{
text: 'JSONP',
handler: makeJSONPRequest
},{
text: 'BLABLALLA',
handler: makeAjaxRequest
},{
text: 'JSONP',
handler: makeJSONPRequest
}]
},{
id: 'status',
xtype: 'toolbar',
dock: 'bottom',
title: "Tap a button above."
}]
})
}
});

Steps to reproduce the problem:
using

layout: {
pack: 'justify',
},


The result that was expected:

every element should be justify


The result that occurs instead:

item are align right.


Screenshot or Video:

none


Debugging already done:

none


Possible fix:

not provided



Thank to everybody... sorry I could get where I misunderstood or where the bug was...

Jamie Avins
18 Aug 2010, 8:04 AM
Thank you for the report.

gabrielstuff
25 Aug 2010, 5:27 AM
Hi !
So was it a mistake or a bug ?
Is there any workaround available in the wild ?

Thank you,

TommyMaintz
1 Sep 2010, 7:11 PM
This has been fixed as part of the layout refactor and will be part of tomorrow's 0.94 release.

gabrielstuff
2 Sep 2010, 9:58 AM
tomorrow's 0.94 release.
Hum... so I can smile like a child before xmas ?