fluentui
fluentui copied to clipboard
CommandBar puts items under overflow when there's plenty room for normal items
Bug Report
- Package version(s): 5.120.0
- Browser and OS versions: Chrome and IE latest versions
Priorities and help requested:
Requested priority: High
Describe the issue:
Rendering the CommandBar component, when I only pass items and no overflowitems, it puts the last item under overflow items automatically even though there's plenty of room for all items to be rendered normally.
When I force a component update after the DOM is loaded, it gets fixed. without changing the props or state. This is a bug in how the component calculates if there's enough room for items or when it does it during the lifecycle. Also if I zoom out on the browser and refresh the page it works as it should.
float left on the div was causing all this!