[Multiple Select] Narrow multiple select control when ListBox is "fill parent"

[Multiple Select] Narrow multiple select control when ListBox is "fill parent"

  
Forge Component
(9)
Published on 2014-05-02 by André Madeira
9 votes
Published on 2014-05-02 by André Madeira

Hi,

I have a ListBox that is "fill parent" and all his parent are so also. Then I put FancyMultipleSelect and bind it with the ListBox. The effect: the resulting control is very thin (100px). But: when some of the parent containers is initially not displayed (Display = False) and then I click something (e.g. some link) that makes this container displayed, the control that wraps the ListBox is as wide as expected.

How can I force this control to work properly without this magic of hiding and displaying?

Regards

Tomasz

Please provide more explanation with screen prints.

Please, find the attached Word document with some print-screen and explanations.

Regards

Tomasz


Hi,

I think I've found a solution. The widget itself has some JS code that creates it. I've just put this code inside $(document).ready function so it is now called when all sizes are properly computed. It seems to work - at least in the given above example :-)

Regards

Tomasz