Results 1 to 2 of 2

Thread: region re rendering on expand in different browsers

  1. #1
    Sencha User
    Join Date
    Sep 2009
    Posts
    81
    Vote Rating
    0
      0  

    Default region re rendering on expand in different browsers

    Keeping an object tag in center region.
    Region in re rendered on every expand.
    For eg. Youtube video played is not retaining it position after collapse and expand.

    All non IE browsers are re rendering the html on expand.
    Is there any config to avoid this.

    Code:
    Ext.onReady(function () {
        new Ext.Viewport({
            layout: 'border',
            items: [{
                height: 75,
                region: 'north',
                title: 'North'
            }, {
                width: 150,
                region: 'west',
                title: 'west'
            }, {
                region: 'center',
                title: 'center',
                collapsible: true,
                html: '<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/Eznls7RfosI"></param><embed src="http://www.youtube.com/v/Eznls7RfosI" type="application/x-shockwave-flash" width="425" height="350"></embed></object>' 
            }, {
                region: 'south',
                title: 'center'
            }]
        });
    });

  2. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,790
    Vote Rating
    391
      0  

    Default

    Different things work in different browsers. For the browsers I tested against this extra bit of panel config seemed to fix it:

    Code:
    animCollapse: false,
    hideMode: 'visibility'
    Of course this will also lose you the animation effect when the panel collapses but unfortunately that slide effect sets display: none when it finishes animating, which is one of the causes of the video resetting.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •