PDA

View Full Version : Don't show window's header



iNes14
10 Nov 2011, 6:52 AM
Hello,

I wonder if it's possible to have a window without header (no title and no close, minimize and maximize button) ?

Or must I change for a panel ?

Thank you

tvanzoelen
10 Nov 2011, 6:55 AM
preventHeader : true

on the window?

iNes14
10 Nov 2011, 7:04 AM
Don't work. I can't see my window now.

tvanzoelen
10 Nov 2011, 7:54 AM
hmm, strange.

the buttons close minimize, maximize you can set with

minimizable: false,
maximizable: false,
closable: false,
hideCollapseTool: true

and do not set a title.

skirtle
10 Nov 2011, 10:58 AM
Ext.create('Ext.window.Window', {
closable: false,
draggable: false,
height: 300,
width: 300
}).show();

iNes14
14 Nov 2011, 2:29 AM
It works, thanks :)

tvanzoelen
14 Nov 2011, 3:13 AM
What, setting draggable to false is preventing the header? That's a nasty work around.

Setting preventHeader on true should prevent the header. That's a bug Skirtle.:)

skirtle
14 Nov 2011, 3:22 AM
I know what you mean but I'm not so sure. It's figuring out whether or not the header is necessary. Dragging is done using the header, so it does make some kind of sense.

I agree it fails on discoverability.

Perhaps you're right that preventHeader should act as an override, that would make sense and be easier to find.

tvanzoelen
14 Nov 2011, 3:28 AM
I checked myself. This is working in 4.07, so preventHeader is working. And so the best answer to this question.



Ext.onReady(function() {
Ext.create('Ext.window.Window', {
preventHeader: true,
height: 300,
width: 300
}).show();
});