PDA

View Full Version : Stick Window to right top corner



vtulin
21 Jun 2010, 2:00 AM
How can I stick non-movable, non-closeble Ext.Window to right top corner of root Window?

Thank you.

Animal
21 Jun 2010, 2:13 AM
closable: false, draggable: false

And then align the Window's Element 'tr-tr' with document.body

vtulin
21 Jun 2010, 2:21 AM
Thank you, it works, but the window is moving outside visible area on alignTo, and it aligns left top corner only on redraw, for example, when I'm resizing my root window...

Animal
21 Jun 2010, 2:27 AM
Try using anchorTo

Animal
21 Jun 2010, 2:29 AM
Or just set the Window's style to



{
top: 0,
left: '',
right: 0
}

Condor
21 Jun 2010, 2:34 AM
Unfortunately, right:0 doesn't work in IE6/7.

vtulin
21 Jun 2010, 3:03 AM
Try using anchorTo
Actually I was using exactly anchorTo, alignTo don't work at all


var w = new Ext.Window({ title: "hi", width: 200, height: 100, closable: false, draggable: false });
w.show(this);
w.anchorTo(document.body, "tr-tr");

Animal
21 Jun 2010, 3:36 AM
Unfortunately, right:0 doesn't work in IE6/7.

Here at work we deprecate use of those browsers. IE6 particularly we do not prioritize issues with it over anything