T346099 covers implementing basic positioning of menus via FloatingUI in 3 components:
This will be done in an internal composable, useFloatingMenu, so it can be applied to future menu components as well.
This task covers investigating and implementing performance improvements for this new functionality.
Notably, FloatingUI's autoUpdate feature seems to be triggered on scroll even when a menu is not open, causing it to recalculate the menu's position. Ideally, these calculations would not be made for invisible menus.
There may be other opportunities for performance enhancements as well.
- Investigate potential performance improvements
- Implement them as necessary