[QGIS-trac] [Quantum GIS] #1450: Adding the Attribute Table DockWidget doesn't update canvas extent

Quantum GIS qgis at qgis.org
Mon Dec 8 10:13:14 EST 2008


#1450: Adding the Attribute Table DockWidget doesn't update canvas extent
-----------------------------------------------+----------------------------
   Reporter:  borysiasty                       |              Owner:  nobody       
       Type:  bug                              |             Status:  new          
   Priority:  minor: annoyance or enhancement  |          Milestone:  Version 1.0.0
  Component:  MapCanvas                        |            Version:  HEAD         
   Keywords:                                   |   Platform_version:               
   Platform:  Debian                           |           Must_fix:  Yes          
Status_info:  1                                |  
-----------------------------------------------+----------------------------
 When opening the attribute table as a DockWidget, the map canvas is not
 being refreshed, so whole contents disappears. Then if I refresh it or
 zoom, it's back, but the canvas extent is not updated - it still includes
 the area occupied by the table now. As a result, zoomToFullExtent hides a
 part of contents 'behind' the attribute table widget. I can't find what
 mathod should be called to update the extents.

 QgsMapCanvas::extent() returns old values
 QgsMapCanvas::zoomToFullExtent() zooms to this old (too extensive) extent
 QgsMapCanvas::updateFullExtent() doesn't change anything
 QgsMapCanvas::adjustSize() helps, but creates artifacts

 Note that if I touch the window layout, for example resize any dock or
 whole main window, the canvas extent becomes updated and everything begins
 to work properly.

 I set the 'must fix for release', because it's just an ugly behaviour
 making a bad impression on users and probably something easy to fix.

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/1450>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list