View Full Version : [FIXED][Bug] Ext.Window throws error when draggable but no title

12 Mar 2011, 3:56 PM
Creating a new Ext.Window using Ext.define, if there is no title passed (this includes both no title member and doing title: '') if you don't set draggable to false, it throws an error in Firebug:

me.header is undefined - ext-all-debug.js Line 80048

Seems to be within initDraggable

12 Mar 2011, 6:35 PM
You can set no title and no errors are thrown. It's when you don't set a title and specify closable as false. This way there is no header.

new Ext.Window({
width: 400,
height: 400,
html: "Hi"

Looks like it's when trying to set the delegate of the DD config so that you can only drag the Window when clicking on the header. If I comment it out, I can click anywhere in the Window to drag which isn't good.

12 Mar 2011, 8:51 PM
I've added a fix so it automatically creates the header element if draggable is set to true.