Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 2169

Control visibility in ResponsiveFlowLayout

$
0
0

I'm struggling a bit with an issue that shouldn't be so difficult to solve.

 

I have a ResponsiveFlowLayout to which I've added some panels using the addContent method. Now I would like to control the visibility of the different panels based on some user input. I control the visibility by binding the visible property of the panel to a model. This all works well. The problem occurs when I hide a panel. The panel gets hidden nicely but the row of the ResponsiveFlowLayout is still 'visible' leaving some blank space where the panel was. I have tried to get the parent of the panel in order to hide it but getParent returns the layout and not the row which, of course, is not an element.

 

Does anyone have any good ideas or am I left to adding and removing content dynamically instead of hiding/displaying?

 

Cheers

Sandro Cucarano


Viewing all articles
Browse latest Browse all 2169

Trending Articles