View Full Version : hbox and vertical scroll

26 Dec 2010, 6:50 AM

something strange that it was not possible to get vertical scroll into hbox layout.
Situation: TabPanel contains FormPanel contains hbox with 2 items.

I tried these without success:

items: [{
layout: 'hbox',
align: 'stretchmax',
border: false,
extraCls: 'customClass', // won't appear
ctCls: 'customClass', // won't appear
innerCls: 'x-box-inner customClass', // won't appear
id: 'myContainer', // ugly workaround
items: [{ ...
So only success with setting an id and css rule

#myContainer .x-box-inner {
overflow-x: hidden;
overflow-y: auto;

This is a problem i have very often with layouts to get the height autofilled or scrollable, it seems that if i combine layouts in child items that they contradict eachother.

26 Dec 2010, 7:33 AM
Is it possible that your classes overides by standarts ext cls?

26 Dec 2010, 8:15 AM
no, these are official properties (except innerCls)

28 Dec 2011, 5:22 AM
same problem in extjs 4.0