#953 closed defect (fixed)
Map title bar disappears when interactive resource is added through the search results
Reported by: | xzam | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | v2.8.1 |
Component: | Web Map Viewer | Version: | v2.6.4 |
Keywords: | Map Panel, Title Bar | Cc: |
Description
Problem:
The map title bar disappears (or in other words is reduced in height significantly) when a interactive resource is added to the map following the steps below.
Prerequisites:
- The main map is in hidden state
Steps to reproduce the behavior:
- locate a interactive resource in the search result panel
- add the resource to the map (the map should fade in and the new layer is added)
- click on the button for hiding the map-panel (top-left corner)
- result should be that the title-bar of the map disappears. It´s not possible to permanently display the mappanel afterwards because the button for this is not visible/clickable anymore
(the attached image shows this status - marked with red)
Attachments (1)
Change History (5)
by , 12 years ago
Attachment: | geonetwork_maptitlebar_bug.PNG added |
---|
comment:1 by , 12 years ago
Here is a link to our geonetwork to reproduce the bug: http://131.220.109.2/geonetwork
comment:2 by , 12 years ago
In the file ./geonetwork/web/geonetwork/scripts/gn_search.js
If I remove the call to the following mainViewport.doLayout(); from the addWMSLayer function it seems to fix the issue. Anyone know why doLayout is required?
function addWMSLayer(layers) { Ext.getCmp("north-map-panel").expand(); // mainViewport.doLayout(); GeoNetwork.mapViewer.addWMSLayer(layers); }
Only tested on Firefox - Maybe it is required for other browsers?
comment:3 by , 12 years ago
Milestone: | v2.6.5 → v2.9.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Applied fix in commit f00b5fc35cde4dfbd3a61c2ff882efcda16e354e (master)
comment:4 by , 12 years ago
Milestone: | v2.9.0 → v2.8.1 |
---|
Commit 357e53fc1d3acf12c2296d4362a4ca51b4963429 in 2.8 branch
Visualization of the bug (marked in red)