When there is not enough space for the filter menu to be opened downwards, it should be opened on top. However, the first time it is opened, it is positioned below the filter button.
Filter menu is mispositioned when first opened. With consequent openings, the menu is positioned as expected.
The calculation for the positioning should be done even with the first initialization.
A sample Dojo for the reproduction of the issue: