PDA

View Full Version : Simple panel + text problem



jugg1es
19 Jul 2012, 12:48 PM
I can't figure out how simply fill a panel with wrapping text. I'd like it to scroll vertically, but the width should be fixed. The text is being set dynamically


xtype: 'panel',
title: 'Last Statement',

flex: 1,
height: 100,
items: [{
xtype: 'text',
id: 'pnlLastStatement',
margin: 3,
autoScroll: true,
autoSize: true,}]

jugg1es
19 Jul 2012, 1:24 PM
Nevermind, I figured it out. You don't need the text object at all, you simply call update('content goes here') on the panel