[Users] GeoExt popup

Andreas Hocevar ahocevar at opengeo.org
Sun Nov 29 10:28:46 CET 2009


Hi,

have you tried if your chart works in an Ext.Window? I bet it won't work 
there either. My final guess is that Ext does not size the chart 
correctly. You can try to create the popup, then add the chart, and then 
doLayout(). Or you can set the popup's hideMode to "offsets".

If neither of the above works, then I'm out of ideas.

Regards,
Andreas.


zeferino saugene wrote:
> Hi Andreas,
>
> I think i was not happy on my explanation.
> I only need to have a chart in a popup window. I sent the code with
> HTML part just to explain that when i leave the code with HTML it
> works BUT when i replace that with chat panel it does not work (it
> does not show the popup window).
> I am still trying the different option in order to make it work.
>
> Regards,
> Zeferino
>
> On Sat, Nov 28, 2009 at 3:42 PM, Andreas Hocevar <ahocevar at opengeo.org> wrote:
>   
>> Hi,
>>
>> now I see what your problem is:
>>
>> you cannot have both html and items in a panel. If you want that, you need
>> to wrap the html in a separate panel:
>>
>> popup = new GeoExt.Popup({
>>                       title: 'My Popup',
>>                       feature: feature,
>>                        width: 200,
>>                       height: 200,
>>                           items:[{
>>                                xtype: 'columnchart',
>>                                store: getStore(),
>>                                yField: 'hits',
>>                                xField: 'month',
>>                                xAxis: new Ext.chart.CategoryAxis({
>>                                        title: 'Month'
>>                                }),
>>                                yAxis: new Ext.chart.NumericAxis({
>>                                        title: 'Hits'
>>                                }),
>>                                extraStyle: {
>>                                   xAxis: {
>>                                                labelRotation: -90
>>                                        }
>>                                }
>>                            }, {html: getInfo()}],
>>                        layout: 'fit',
>>           collapsible: true
>>       });
>>
>>
>> Regards,
>> Andreas.
>>
>> zeferino saugene wrote:
>>     
>>> Thank you for the support.
>>>
>>> --
>>> Zeferino
>>>
>>>
>>> On Fri, Nov 27, 2009 at 8:57 AM, Andreas Hocevar <ahocevar at opengeo.org>
>>> wrote:
>>>
>>>       
>>>> Eric Lemoine wrote:
>>>>
>>>>         
>>>>> On Thursday, November 26, 2009, Andreas Hocevar
>>>>> <andreas.hocevar at gmail.com> wrote:
>>>>>
>>>>>
>>>>>           
>>>>>> Hi,
>>>>>>
>>>>>> I am not familiar with Ext charting, but items is an array.
>>>>>>
>>>>>>
>>>>>>             
>>>>> IIRC it is possible to give "items" a single item.
>>>>>
>>>>>
>>>>>           
>>>> So it looks like the OP's problem is how to configure the chart.
>>>>
>>>> zeferino, Can you verify that the chart works in a different container
>>>> and
>>>> then try again to add it as an item? In terms of items, the Popup is
>>>> nothing
>>>> different than a Panel or a Window in Ext JS.
>>>>
>>>> Regards,
>>>> Andreas.
>>>>
>>>>
>>>>         
>>>>> cheers,
>>>>>
>>>>>
>>>>>
>>>>>           
>>>> --
>>>> Andreas Hocevar
>>>> OpenGeo - http://opengeo.org/
>>>> Expert service straight from the developers.
>>>>
>>>>
>>>>
>>>>         
>>> _______________________________________________
>>> Users mailing list
>>> Users at geoext.org
>>> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>>>
>>>       
>> --
>> Andreas Hocevar
>> OpenGeo - http://opengeo.org/
>> Expert service straight from the developers.
>>
>>
>>     
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>   


-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.



More information about the Users mailing list