Template repeater content resizing

Hi,

Is there any way to make a template repeater resize its contained elements when the parent windows is resized? By default, it just shows a scrollbar, so some of its elements disappear when making the window smaller. Our customer is complaining a lot about this.

Thanks,
Javier

Also found that when trying to use the function “system.gui.resizeComponent()” on the contained elements, I get the exception “Component is not in a standard container”

Any thoughts?

Thanks,
Javier

I don’t think there is a way to resize the templates in the Template Repeater.

I had the same problem and my solution was to the replace the Template Repeater with the Template Canvas. With the Template Canvas the height and width of each template can be specified. I adjusted the height and width of each template based on the width and height of the window they are in.

I also added a ComponentListener to the root container of the window, so that when the window resized the templates in the Template Canvas also resized. I only implemented the “componentResized” method of the ComponentListener.

Best,