This issue duplicates another issue.
  1. #1
    Sencha User
    Join Date
    May 2013
    Location
    Saint-Petersburg, Russia
    Posts
    32
    Vote Rating
    0
    jumpow is on a distinguished road

      0  

    Default Calendar does not work in initially collapsed FieldSet

    Calendar does not work in initially collapsed FieldSet


    If fildset, containing Calendar, is initially collapsed, calendar does not work!
    !DOCTYPE HTML>
    <html>
    <head>
    <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
    <link rel='stylesheet' type='text/css' href='extjs/resources/css/ext-all.css'>
    <script type='text/javascript' src='extjs/ext-all-debug.js'></script>

    <script type="text/javascript">
    Ext.application(
    {
    name: 'Test7',
    launch: function()
    {
    Ext.BLANK_IMAGE_URL='extjs/resources/s.gif';
    var bADate= new Ext.form.DateField(
    {
    id: 'bADate',
    fieldLabel: 'from ',
    labelAlign: 'right',
    format: 'd.m.Y',
    name: 'bADate',
    width:210,
    endDateField: 'eADate', // id of the end date field
    allowBlank:false,
    listeners :
    {
    render : function(datefield)
    {
    datefield.setValue(new Date());
    }
    }
    });
    var eADate= new Ext.form.DateField(
    {
    id: 'eADate',
    fieldLabel: 'to ',
    labelAlign: 'right',
    format: 'd.m.Y',
    name: 'eADate',
    width:210,
    startDateField: 'bADate', // id of the start date field
    allowBlank:false,
    listeners :
    {
    render : function(datefield)
    {
    datefield.setValue(new Date());
    }
    }
    });
    var setA = Ext.create('Ext.form.FieldSet',
    {
    title: 'Set A',
    collapsible: true,
    collapsed: true, // Remove this line and calendar works!
    width: 267,
    margins: '4 4 4 4',
    defaults:
    {
    labelWidth: 89,
    layout:
    {
    type: 'hbox',
    defaultMargins: {top: 3, right: 3, bottom: 3, left: 3}
    }
    },
    items:
    [
    bADate,
    eADate
    ]
    });
    var portal = new Ext.Viewport(
    {
    layout: 'border',
    autoScroll:true,
    items:
    [
    {
    id: 'JSCenter',
    region: 'center',
    layout: 'vbox',
    margins: '2 2 0 0',
    width: '100%', height: '100%',
    items:
    [
    setA
    ]
    }
    ]
    });
    }
    });
    </script>
    </head>
    <body>
    <div id="SJPageMenu" width='400', height='400'></div>
    </body>
    </html>

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    4,789
    Vote Rating
    167
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      0  

    Default


    Thanks for the report!
    Looks like this is a bug fix in progress:
    http://www.sencha.com/forum/showthread.php?266167
    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our recruiting manager: sheryl@sencha.com

    C
    heck out all of the 2013 SenchaCon presentations here:
    http://www.sencha.com/blog/senchacon...now-available/

Thread Participants: 1