PDA

View Full Version : scrollbar not working in modal popup



chinnib37
2 Oct 2013, 3:18 AM
Hi,
I am using extjs 4.2 in my application.
I want to open modal popup with scroll bar. But scroll bar is not working in window.

this is my code :

Ext.define('resources.views.core.HtmlWindow',{
extend : 'Ext.window.Window',
modal : true,
resizable : false,
height : 660,
width : 850,
layout : 'fit',
listeners: {
close : {
fn : function (window,eOpts) {
var me = this;
me.controller.closeWindow(me);
}
}
},
getForm : function(){
return this.down('#htmlWindowform').getForm();
},
initComponent : function(){
this.initActions();
this.items = [{
xtype : 'form',
border : 0,
autoScroll : true,
itemId : 'htmlWindowform',
items : [{
xtype : 'hidden',
name : 'emailTextDetailsUuid'
},
this.htmlWindow_htmlEditor
]
}];
return this.callParent(arguments);
},
initActions : function(){
var me = this;

this.htmlWindow_htmlEditor = Ext.create('Ext.form.field.HtmlEditor',{
name : 'body',
columnWidth : 0.72,
height : 680,
enableColors: true,
enableAlignments: true,
enableSourceEdit: false,
});

},
});

46109



How to fix this bug.?
Thanks,

ettavolt
2 Oct 2013, 10:09 AM
Try to configure form modal:true,floating:true and remove wrapping window.

chinnib37
3 Oct 2013, 9:56 PM
its not working.