I am having an issue when exporting atlas map series to image. In each map the position of the legend is jumping around by a few cm. I have the position referenced under item properties to the bottom right corner which I thought would mean the legend expands and contracts upward and left as the legend contents change between maps. Instead the whole legend seems to move around sometimes covering up other information.

Is this a known bug?

3 Answers 3


I observe the same issue happening when the checkbox "Main properties > Resize to fit contents" is checked.

Also I can observe that the Y position on page n is what should have been set as Y position calculated for page n-1.

For example is the legend was tall on page 2, and short on page 3 then it is floating high on page 3 instead of being anchored at the bottom of the page where I want it.

The solution above won't fix the issue, in my case. The only way that I found is unchecking "Resize to fit contents"

Page 1, tall legend:

Page 1, tall legend

Page 2, short legend:

Page 2, short legend

Page 3, tall legend:

Page 3, tall legend

I'm using QGIS 2.18.24 on OS X El Capitan.

Any hep would be greatly appreciated!


You can fix the position by copying the X and Y values without the mm under the tab Position and size and paste them by clicking on Data Defined Override and go to paste as you can see below or go to Edit and paste the number only there:

enter image description here

After pasting the number, it should be marked in yellow color

enter image description here

Do this process for both X and Y which will fix the position of the legend.

  • 1
    not seeming to work, perhaps there is something wrong
    – rob6179
    Dec 13, 2017 at 4:28
  • Try to fix the width and height also. Even if the data in the legend changed the size will not be changed in this case.
    – ahmadhanb
    Dec 13, 2017 at 4:32
  • Nope, still moving around. I'm not sure if the data defined buttons are supposed to be red now? sorry i'm new to this and cant work out how to post screenshots
    – rob6179
    Dec 13, 2017 at 4:40
  • I have edited the expression to deleted the mm symbol and with x, y and the height and width all fixed it works, however there is excess space in the legend on many maps that are not displaying as many layers. Maybe this I gotta live with?
    – rob6179
    Dec 13, 2017 at 4:50
  • No, it should be yellow. Copy only the number without mm for X and Y and paste each one for its corresponding field.
    – ahmadhanb
    Dec 13, 2017 at 4:51

After check and test, i confirm that this bug is fix with qgis 3.28 !



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.