View Full Version : EXTJS 4 drawing: sprite size

Anthong Redbeard
29 Apr 2011, 12:21 PM
I was good with Raphael, and I'm really struggling with the draw component in extjs4 any help would be appreciated.

I have a panel with a fit layout -> draw component->text sprites.

I want to be able to size and position the text sprites, but everything I do seems to keep them ion a fit layout within the draw component.

var chart = Ext.create('Ext.draw.Component', {
viewBox: true,
height: 350,
width: 600,
items: [{
type: 'text',
text: this.data[0].Domain,
fill: '#fff',
font: '18px Arial',
type: 'text',
text: this.data[1].Domain,
fill: '#fff',
font: '18px Arial'


looking for suggestions.

2 May 2011, 11:25 PM
why posting in open discussion? There is a help forum for such questions!

set viewbox:false