Hi Andreas, Hi Bart, thanks to both of you... removing the autoHeight and applying the patch did the trick. Now I can see the maps again.
Thanks, Michael 2011/4/27 Andreas Hocevar <[email protected]>: > Michael, > > this one is easy to fix: you should not use "autoHeight: true" with a "fit" > layout. So just remove the "autoHeight: true" line and you should be fine. > > Andreas. > > On Apr 26, 2011, at 14:49 , Michael Schulz wrote: > >> Hi Bart, >> >> thanks, I applied the patch to mapPanel.js, but now unfortunately I >> don't get any map tiles anymore. If I click on my max extent button in >> the toolbar, I get a "bounds is null" error... >> >> Cheers, Michael >> >> 2011/4/26 Bart van den Eijnden (OSGIS) <[email protected]>: >>> Hi Michael, >>> >>> any chance you can check if this patch: http://trac.geoext.org/ticket/419 >>> fixes your issue? >>> >>> Best regards, >>> Bart >>> >>>> Hi, >>>> I found a problem when adding a mappanel to tabpanel when then >>>> mappanel has a tool or bottombar assigned. There seems to be sth. >>>> wrong with the calculation of the height of the mappanel. The height >>>> of the tbar is not taken into account, in that e.g. the OL scaleline >>>> is hidden to 50% at the lower left, or when using a bottombar, the >>>> complete bottombar is not visible. >>>> >>>> I just reproduced this issue with the mappanel-viewport example (only >>>> the changes): >>>> added at line 56: >>>> >>>> // ZoomToMaxExtent control, a "button" control >>>> var action = new GeoExt.Action({ >>>> control: new OpenLayers.Control.ZoomToMaxExtent(), >>>> map: map, >>>> text: "max extent", >>>> tooltip: "zoom to max extent" >>>> }); >>>> >>>> var toolbar = new Ext.Toolbar({ >>>> items : [ >>>> {xtype: 'tbfill'} >>>> ,action >>>> ] >>>> }); >>>> >>>> var scaleline = new OpenLayers.Control.ScaleLine(); >>>> map.addControl(scaleline); >>>> >>>> change the viewport to: >>>> >>>> new Ext.Viewport({ >>>> layout: "border", >>>> items: [{ >>>> region: "north", >>>> contentEl: "title", >>>> height: 50 >>>> },{ >>>> region: "center", >>>> id: "tabpanel", >>>> xtype: "tabpanel", >>>> activeTab: 0, >>>> frame:true, >>>> defaults: { >>>> autoHeight: true, >>>> layout: 'fit' >>>> }, >>>> items: [{ >>>> id: "mappanel", >>>> title: "Map", >>>> xtype: "gx_mappanel", >>>> map: map, >>>> layers: [layer], >>>> extent: extent, >>>> split: true, >>>> tbar: toolbar >>>> }] >>>> }, { >>>> region: "east", >>>> title: "Description", >>>> contentEl: "description", >>>> width: 200, >>>> split: true >>>> }] >>>> }); >>>> >>>> Then you should see the problem. Can someone help? >>>> >>>> Cheers, Michael >>>> >>>> -- >>>> ----------------------------------------------------------- >>>> Michael Schulz >>>> >>>> Christoph-Mang-Str. 5 >>>> D-79100 Freiburg >>>> _______________________________________________ >>>> Users mailing list >>>> [email protected] >>>> http://www.geoext.org/cgi-bin/mailman/listinfo/users >>>> >>> >>> >>> >> >> >> >> -- >> ----------------------------------------------------------- >> Michael Schulz >> >> Christoph-Mang-Str. 5 >> D-79100 Freiburg >> _______________________________________________ >> Users mailing list >> [email protected] >> http://www.geoext.org/cgi-bin/mailman/listinfo/users > > > > -- > Andreas Hocevar > OpenGeo - http://opengeo.org/ > Expert service straight from the developers. > > -- ----------------------------------------------------------- Michael Schulz Christoph-Mang-Str. 5 D-79100 Freiburg _______________________________________________ Users mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/users
