Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJSIV-5714 in 4.1.
  1. #1
    Sencha - Community Support Team
    Join Date
    Jan 2012
    Posts
    1,376
    Vote Rating
    103
    vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all

      0  

    Default [4.1-rc1] Strange behaviour of DatePicker placing in Panel with vbox layout

    [4.1-rc1] Strange behaviour of DatePicker placing in Panel with vbox layout


    Ext version tested:
    • Ext 4.1-rc1


    Browser versions tested against:
    • Chrome 17


    DOCTYPE tested against:
    • ____


    Description:
    • The DatePicker changes its width instead of keeping stretch to its parent width when changing month by clicking Previous Month/Next Month buttons or Month/Year dropdown.
      This only happens when setting the height of DatePicker to a specific value. If setting it to null or not setting it then the DatePicker works as expect.


    Steps to reproduce the problem:
    • open the testing code in browser
    • Change the month by clicking Previous Month or Next Month button or Month/Year dropdown


    The result that was expected:
    • The DatePicker must keep its width stretched to its parent width.


    The result that occurs instead:
    • The DatePicker change its width


    Test Case:


    Code:
    Ext.require([
        'Ext.*'
    ]);
    
    
    Ext.onReady( function(){
        Ext.create('Ext.panel.Panel',{
            renderTo: Ext.getBody(),
            width: 400,
            height: 300,
            layout: {
                type: 'vbox',
                align: 'stretch'
            },
            items: [{
                xtype: 'datepicker',
                height: 200 // <- No problem if height is null
            }]
        });
    });

    Debugging already done:
    • none


    Possible fix:
    • not provided


    Additional CSS used:
    • only default ext-all.css


    Operating System:
    • Win 7 - 32bit

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    34,121
    Vote Rating
    453
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Looks like this has happened in all 4.1.0 releases, worked in 4.0.7 so a regression.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.