hacker
3
Thanks, @cmarchan,
Great tips.
But the thing is that the conditionals are simple. I have only 2 groups, and I only show Group 1 when the user is logged in, and I only show Group 2 when the user isn´t logged in. These conditionals work perfect.
The thing is that one group is taller than the other one and when the short one is visible, the height of the other one is making the popup taller.

This is Group 1 (up)
This is Group 2(down)

See how the popup´s height is the same as Group 1 and both are in collapse element´s height.