Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Jul 2010
    Location
    Paris, France
    Posts
    257
    Vote Rating
    0
    gabrielstuff is on a distinguished road

      0  

    Default [FIXED-234] Pack justify get broken between 0.91 an 0.93

    [FIXED-234] Pack justify get broken between 0.91 an 0.93


    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:

    Code:
    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
    Code:
     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...

  2. #2
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    20
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Thank you for the report.

  3. #3
    Sencha User
    Join Date
    Jul 2010
    Location
    Paris, France
    Posts
    257
    Vote Rating
    0
    gabrielstuff is on a distinguished road

      0  

    Default


    Hi !
    So was it a mistake or a bug ?
    Is there any workaround available in the wild ?

    Thank you,

  4. #4
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    10
    TommyMaintz will become famous soon enough TommyMaintz will become famous soon enough

      0  

    Default


    This has been fixed as part of the layout refactor and will be part of tomorrow's 0.94 release.

  5. #5
    Sencha User
    Join Date
    Jul 2010
    Location
    Paris, France
    Posts
    257
    Vote Rating
    0
    gabrielstuff is on a distinguished road

      0  

    Default


    Quote Originally Posted by TommyMaintz View Post
    tomorrow's 0.94 release.
    Hum... so I can smile like a child before xmas ?

Similar Threads

  1. Pack ExtJS in a .jar
    By pulporitmo in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 9 Oct 2009, 7:02 AM
  2. Replies: 2
    Last Post: 10 Sep 2009, 5:21 PM
  3. Justify PagingToolbar?
    By NotChris in forum Ext 2.x: Help & Discussion
    Replies: 6
    Last Post: 17 Mar 2008, 8:32 AM
  4. initDocReady (SVN changeset 234)
    By stever in forum Ext 1.x: Bugs
    Replies: 13
    Last Post: 14 Jun 2007, 10:30 PM

Thread Participants: 2