-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add Y page offset expression #37568
add Y page offset expression #37568
Conversation
9f418f5
to
06953db
Compare
The QGIS project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 14 days and is being automatically marked as "stale". If you think this pull request should be merged, please check
|
@nyalldawson how does that look to you? |
While we hate to see this happen, this PR has been automatically closed because it has not had any activity in the last 21 days. If this pull request should be reconsidered, please follow the guidelines in the previous comment and reopen this pull request. Or, if you have any further questions, just ask! We love to help, and if there's anything the QGIS project can do to help push this PR forward please let us know how we can assist. |
Not stale |
this looks good to me, I'd like to merge end of the week if there are no objections. |
LGTM - but can you add a unit test please? |
this is useful for dynamically position items relative to pages in multi-pages layouts
06953db
to
2291714
Compare
@nyalldawson Done, is it ok like this ? |
Description
This PR adds the
layout_pageoffsets
expression, to be used in the layout composer. The expression returns an array of Y coordinates of the top of each page in the layout, allowing to dynamically position items on pages in a context where page sizes may change.Example to set an item at 2.5mm from the top of page 2 (for the data-defined position Y of a map item) :
This constitutes a workaround for #37567