PDA

View Full Version : How to make the scrollbar height equal to the control height for a textareafield?



linuxyf
25 Dec 2011, 6:07 PM
30288

mitchellsimoens
26 Dec 2011, 6:22 AM
Kind of looks like CSS is cutting something off? You can inspect the DOM using the dev tools to see what is going on.

linuxyf
26 Dec 2011, 4:56 PM
There is no relation with CSS. if i specify a height or self-adapting height (flex: 1), same problem occurs.

it looks like a bug.


{ xtype: 'panel',
flex: 1,
cls: 'MainPanelMargin',
layout: 'vbox',
items:[
{
xtype: 'spacer',
height: 10
},
{
xtype: 'textareafield',
id: 'textarearequestdata',
readOnly: true,
cls: 'TextAreaBorder',
flex: 1
},
{
xtype: 'spacer',
height: 10
},

{ xtype: 'textareafield',
id: 'textareareponsedata',
readOnly: true,
cls: 'TextAreaBorder',
flex: 1
},
{
xtype: 'spacer',
height: 10
}]

}]