-
4 Jul 2012 5:23 AM #1
Unanswered: Window rendering in a panel
Unanswered: Window rendering in a panel
I have been spending a couple of days trying to restrict a window rendered inside a panel .I used constrain:true param..But cant get it restricted completely within the panel.Yes..I can restrict it at top and both side ways,but not at bottom.Some kind of light would be of great help..Also how to define a drag/drop event handlers for window,other than the regular 'move' event.
-
4 Jul 2012 5:28 AM #2
Here is the code I have had no luck with..
Code:var viewport = Ext.create('Ext.container.Viewport', { renderTo: Ext.getBody(), layout: 'border', items: [{ region: 'west', width: 200, collapsible: true, collapsed: true, html: 'West Region' }, { region: 'center' }, { region: 'east', width: 200, collapsible: true, collapsed: true, html: 'East Region' }, { region: 'south', height: 50, html: 'South Region' }], listeners:{ 'afterrender':function(){ var win = Ext.create('Ext.window.Window', { renderTo: this.layout.regions.center.getEl(), // using renderTo width: 400, height: 300, title: 'Test', constrain:true, constrainHeader: true }).show; } } });
-
5 Jul 2012 6:11 AM #3Sencha - Community Support Team
- Join Date
- May 2012
- Location
- Istanbul
- Posts
- 1,331
- Vote Rating
- 76
- Answers
- 124
sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.
-
6 Jul 2012 2:50 AM #4
Yes..i missed 'show()'..but that wont fix my problem..Also I need to drag it inside a panel.So cant keep draggable = false..
-
2 Nov 2012 9:37 AM #5
fixed
fixed
Fixed it recently.
Removing constrainHeader:true did the trick
-
2 Nov 2012 9:38 AM #6
fixed
fixed
sorry..missed out one more thing
constrain:true
constrainTo: the div
remove
constrainHeader:true


Reply With Quote