PDA

View Full Version : [4.1.3] Remove the framing from a window component



slemmon
13 Nov 2012, 9:22 AM
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:



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/

mitchellsimoens
15 Nov 2012, 6:41 AM
In initComponent, there is this line:


me.frame = false;

starting with 4.1.1

slemmon
17 Nov 2012, 7:28 AM
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?

suzuki1100nz
17 Nov 2012, 6:51 PM
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