Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#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 jef, 15 years ago

Resolution: fixed
Status: newclosed

fixed in r9919

comment:2 by borysiasty, 15 years ago

Resolution: fixed
Status: closedreopened

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.

in reply to:  2 comment:3 by jef, 15 years ago

Replying to borysiasty:

It's only partially fixed.

fixed with r9920?

comment:4 by borysiasty, 15 years ago

Yes, now is fine. Can we patch also the 1.0.x branch?

in reply to:  4 comment:5 by jef, 15 years ago

Resolution: fixed
Status: reopenedclosed

Replying to borysiasty:

Yes, now is fine. Can we patch also the 1.0.x branch?

applied in r9936

comment:6 by (none), 15 years ago

Milestone: Version 1.0.1

Milestone Version 1.0.1 deleted

Note: See TracTickets for help on using tickets.