View Full Version : Missing scrollbars after adding panel to panel

11 Mar 2014, 7:29 AM

i've got a defined panel:

var ap = new Ext.Panel({
title: "Main Panel",
border: false,
region: "center",
layout: "hbox",
margins: "5 0 5 5",
autoScroll: true,
fbar: ["->",{
text: "OK", handler: function() { }

Now i want add some other panels dynamically (during the runtime) to that panel named "ap".
There are between 10 and 40 new panels; they are defined within a "success" of an ajax request:

var obj = Ext.decode(response.responseText);
(obj.data).forEach(function(entry) {
var win = new Ext.Panel({
border: true,
layout: "fit",
width: 400,
html: "New testpanel ..."


The panels are being added to the "ap" panel. That's not the problem; that's working.
But new new panel are having a width of 400px and ...

(the problem)
... when there are more panels than the "ap" panel can show, there is NO (horizontal) scrollbar at the bottom of panel "ap".

What have i do to get thos very important scrollbar ?

12 Mar 2014, 11:04 PM
* push *

Please, it's urgent for me.