Bug report #15015

regression: zoom to {selection, layer} not taking docked panels into account

Added by Mathieu Pellerin - nIRV over 8 years ago. Updated about 8 years ago.

Status:Closed
Priority:High
Assignee:Nathan Woodrow
Category:Map Canvas
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:22962

Description

Since ef51b70, zoom to {selection, layer} actions fail to take into account space taken by opened docked panels. It can be quite annoying at times when selected items get hidden under a docked panel making much harder to those at first glance. For e.g., if you use an expression to select features and want to have a quick look at the selected features, zoom to selection won't do that anymore with opened panels.

Steps to reproduce
  1. Launch QGIS, make sure the style dock is docked, and close it
  2. Add a layer to a new project
  3. Open the style dock
  4. Zoom into the canvas within the extent of the layer
  5. Use the "zoom to layer" action, and note the layer extent falling partly under the docked style panel

History

#1 Updated by Mathieu Pellerin - nIRV over 8 years ago

  • Assignee set to Nathan Woodrow

#2 Updated by Nathan Woodrow over 8 years ago

  • Resolution set to fixed/implemented

Fixed by doing a revert on the commit. Will commit a better change at a later date.

#3 Updated by Nathan Woodrow over 8 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF