fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

CommandBar puts items under overflow when there's plenty room for normal items

Open hamedy opened this issue 8 years ago • 1 comments

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.

hamedy avatar Aug 28 '18 11:08 hamedy

float left on the div was causing all this!

hamedy avatar Aug 28 '18 12:08 hamedy