#1450 closed bug (fixed)
Adding the Attribute Table DockWidget doesn't update canvas extent
Reported by: | borysiasty | Owned by: | nobody |
---|---|---|---|
Priority: | minor: annoyance | Milestone: | |
Component: | MapCanvas | Version: | Trunk |
Keywords: | Cc: | ||
Must Fix for Release: | Yes | Platform: | Debian |
Platform Version: | Awaiting user input: | yes |
Description
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.
Change History (6)
comment:1 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
follow-up: 3 comment:2 by , 15 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
It's only partially fixed. When opening the attribute table, the map doens't disappear anymore (thanks), but is still covered by the table. The 'Update to full extent' button doesn't help. The map extent still contain the area covered by the table. But if you touch the window layout, the extent is immediatelly updated and the map is zoomed out.
comment:5 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
fixed in r9919