[Users] GeoExt.MapPanel and TabPanel
Andreas Hocevar
ahocevar at opengeo.org
Fri Sep 11 18:45:54 CEST 2009
Luca Casagrande wrote:
> Andreas Hocevar ha scritto:
>
>> Luca Casagrande wrote:
>>
>>> Hi Pierre and thanks for your answer,
>>> adding null as you suggested brings the same problem :(
>>>
>>>
>> Understandable. OpenLayers.Map also accepts a single argument configuration.
>>
>>
>>> What I don't understand is why if I set as active tab the first one,
>>> the page loads with no error and all is working fine.
>>>
>>>
>> The problem is the way ExtJS hides elements by default, by setting
>> style.display to none. Try setting hideMode to "offsets" in your
>> mapPanel config, and see
>> http://www.extjs.com/deploy/dev/docs/source/Component.html#cfg-Ext.Component-hideMode
>> for more details.
>>
>
> Same problem Andreas..
> The first error is "tile is undefined" and then, if I try to change the
> visibility of an overlay layer, "bottomLeftTile is undefined".
>
Hm. If the problem is really Ext related, you could try to wrap the
mapPanel into an extra Ext.Panel with layout: "fit". Or try to set
deferredRender: false also on the mapPanel.
Regards,
Andreas.
> Thanks for your supporto
>
> Ciao
> Luca
>
> _______________________________________________
> 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