Results 1 to 4 of 4

Thread: [4.1.3] Remove the framing from a window component

  1. #1
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,154
    Answers
    501
    Vote Rating
    247
      0  

    Default Unanswered: [4.1.3] Remove the framing from a window component

    In 4.1.3 (and 4.1.1) I'm trying to remove the framing from a window.
    In 4.1.0 I successfully used the following:

    Code:
    Ext.widget('window', {
        width: 300
        , height: 300
        , width: 300
        , frame: true            // never found this to be intuitive, but it's what worked on 4.0.x and 4.1.0
        , shadow: false
        , border: false
        , closable: false
        , html: 'some HTML'
    }).show();
    Here's an example on JSFiddle. The example by default is using 4.1.0. Switch to 4.1.1 and re-run the example to see the difference.
    http://jsfiddle.net/slemmon/9tkAb/

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,316
    Answers
    3881
    Vote Rating
    1290
      0  

    Default

    In initComponent, there is this line:

    Code:
    me.frame = false;
    starting with 4.1.1
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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 in print!

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

  3. #3
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,154
    Answers
    501
    Vote Rating
    247
      0  

    Default

    Is there a way through the standard config to prevent the window from creating the frame? Or would I need to override initComponent in my own subclass?

  4. #4
    Sencha Premium User suzuki1100nz's Avatar
    Join Date
    Apr 2011
    Location
    New Zealand
    Posts
    713
    Answers
    45
    Vote Rating
    234
      0  

    Default

    Docs show frame is config - however in 4.1.3 as you have pointed out it doesn't work.
    Seems like a bug to me - so raise it in the bugs forum

    You could aways use a floating panel - http://www.sencha.com/forum/showthread.php?229740

Posting Permissions

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