The menu to choose the programming language of a rem code always collapses

This always happens to me when I create a rem code an empty page or that doesn’t have much content.

It is annoying to have to create several voids so that it appears complete.

Does this happen to anyone else?