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
[Layout] Allow use of item variables to change an item's own properties #26657
Comments
Author Name: Nyall Dawson (@nyalldawson) Other actions trigger a refresh too - e.g. clicking refresh, changing to a new atlas feature, exporting the layout. |
Author Name: Harrissou Santanna (@DelazJ) I could have bet that I tried the refresh button unsuccessfully but i'd have lost... So yes, my list was not complete. |
Author Name: Jürgen Fischer (@jef-n) Please test with QGIS 3.4 - QGIS 2.18 reached it's end of life.
|
Author Name: Harrissou Santanna (@DelazJ) Confirmed on master 3.5. Using @map_scale does not visually trigger the map item placement in my example; you may need to eg refresh the dialog beforehand.
|
This is a feature request, not a bug -- it relates to other open feature requests concerning handling of dependencies in layout expressions |
Author Name: Harrissou Santanna (@DelazJ)
Original Redmine Issue: 18770
Affected QGIS version: 3.5(master)
Redmine category:map_composer/printing
Let's add a map item and try to change its position using data-defined properties.
If I write expression like @case when @layout_pageheight >210 then 10 else 40 end@ for the X position data-defined button, then anytime i change the page size crossing the 210, I can see the map item moving in the layout. Great!
Now if i write @case when @map_scale >5000 then 10 else 40 end@ for the same property and change the scale of the map item, it does not move... until something else triggers its displacement ie:
In all these case, it will move to the data-defined position.
I checked with other internal variable of the map item (map_rotation, eg) and other items (eg, label item with its rotation data-defined button using item_id variable) and anytime I use an interval variable to set a property of the item, no change occurs dynamically.
This makes the layout item's variables a bit useless (as you can not even call them from another item properties in 2.18).
Affects both 2.18 and 3.1 (master)
The text was updated successfully, but these errors were encountered: