Well, the title says it all!
I have the templateParams bound to a named query, and would like to resize the repeater based on the number of templates.
Thanks!
Well, the title says it all!
I have the templateParams bound to a named query, and would like to resize the repeater based on the number of templates.
Thanks!
You could trigger a transform call to resize or reposition the repeater using the templateParams propertyChange event. The code would look something like this:
if event.propertyName == 'templateParams':
# Set the height of the repeater to 50 pixels per template
newHeight = 50 * event.newValue.rowCount
system.gui.transform(event.source, newHeight = newHeight)
See the user manual for additional options:
8.1 User Manual: system.gui.transform
Thank you, Justin. That's exactly what I needed.