PDA

View Full Version : Vertical scroll in modal window.



Valentyn
11 Jun 2014, 12:54 AM
I have to create a modal window is not displayed vertical scroll. :-/
More data window. Using version 4.0.7



clickMyReports = function (eventObj) {
var winGetFavReports = Ext.create('Ext.window.Window', {
autoShow: true,
width: 900,
height: 400,
title: '???? ????????? ??????',
autoScroll: true,
border: false,
modal: true,
layout: 'fit',
items: {
xtype: 'panel',
closable: true,
layout: 'fit',
//frame: true,
autoScroll: true,
id: 'favorite_reports_container'
}
});
$.ajax({
url: 'inc/ajax/get_reports.php?a=reports_fav',
cache: false,
type: "POST",
success: function(data) {
$('#favorite_reports_container').html(data);
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError);
}
});
}
Please help. Tried various options, but the scroll does not appear.

greg.barry
12 Jun 2014, 1:33 PM
Vertical scrolling works for me. Here's an example:
https://fiddle.sencha.com/#fiddle/6kk

Are you sure you're generating enough content to necessitate a scroll bar?