PDA

View Full Version : Making button anchored, even if text is too long



raskri
22 Dec 2010, 2:37 AM
I'm wondering if someone might help me out...

I want the button in a west panel(anchor layout and resize-able) in a viewport to hide the overflowed text so the button fits the panel, not expand the button beyond the panels' split.


new Ext.Viewport({
layout: 'border',
items: [{
region: 'west',
layout: 'anchor',
width: 200,
collapsible: false,
split: true,
useArrows: false,
items: new Ext.Button({
text: 'asd asd asd asd asd asd asd asd asd asd asd asd',
anchor: '100%'
})
},{
region: 'center'
}]
});
23927
~o)