On 10/25/16, 11:43 AM, "kamcknig" <[email protected]> wrote:

>I am not because I would like them to be dynamically sized. The only width
>I believe I have set is on the renderer itself I set the minWidth to 150.

Yeah, that sounds like a scenario we hit often.  I often really only want
a renderer to be dynamically sized at startup or when the app is resized,
but not on every update.  The solution is to make sure your renderers do
not change their measured size based on content.  That can be hard if
sub-components have scrollbars or are otherwise flexible.  Another trick
I've used is to wait until the layout has run once (and hopefully chosen
good sizes) then go and run code to set the renderer's size explicitly.
Even something as simple as

   renderer.explicitWidth = renderer.width;

can be sufficient.

HTH,
-Alex

Reply via email to