Hi Phil,
 
I guess your problem is related to the asynchronous loading of the images. Maybe
the size of your legendContainer is calculated before the image is loaded
completely. I would suggest to try to call the  'doLayout' function of your
legendContainer after the image is loaded. For this you can use the '
legendimageloaded' event of the 'LegendImage' class.
 
Best regards,
Chris 
 
 

> Phil Scadden <p.scad...@gns.cri.nz> hat am 14. Mai 2015 um 07:11 geschrieben:
>
>
> If I explicitly dimension the layer container (height and width), eg
> this.legendContainer = Ext.create('Ext.panel.Panel',{
> layout: {type:'vbox'},
> itemId:'agslegendbox',
> height:100,
> width:182,
> border: false,
> defaults: {
> border: false
> }
> });
> this.add(this.legendContainer);
>
> This it appears, but this is not satisfactory - need it to be
> dimensioned according to enclosing objects.
>
> Notice: This email and any attachments are confidential.
> If received in error please destroy and immediately notify us.
> Do not copy or disclose the contents.
>
> _______________________________________________
> Dev mailing list
> Dev@geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/dev
_______________________________________________
Dev mailing list
Dev@geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/dev

Reply via email to