Can I modify the height expansion display with only one template without re-rendering the template
templateList = event.source.parent.getComponent('Template Repeater').getLoadedTemplates()
for template in templateList:
print template.width, template.height
# It will be restored automatically in about one second after modification!
template.height = 270
Your script says template repeater, but your screenshots show a template canvas - which are you actually using?
If you're using a template canvas, and one a new enough version, simply updating the templates dataset to have a new width/height (but be otherwise identical) should resize the individual templates without reloading all templates completely.
Both templates have this problem, and like the one in the video, the height will automatically recover after a second or so
Yes, the template repeater does its own resizing of instances.
Use a template canvas, and in your script, write back to the templates dataset, as I mentioned in the first post.
1 Like