Skip to content

DetailsList: headers now resize again.#4325

Merged
dzearing merged 7 commits intomicrosoft:masterfrom
dzearing:detailsheader-fix
Mar 21, 2018
Merged

DetailsList: headers now resize again.#4325
dzearing merged 7 commits intomicrosoft:masterfrom
dzearing:detailsheader-fix

Conversation

@dzearing
Copy link
Copy Markdown
Member

Addresses #4309.

The createRef changes screwed up the FocusZone ref logic in DetailsHeader, which broke column resizing. There also wasn't test coverage for this scenario. I've fixed the issue, and added a test to verify that we can resize.

We also now respect maxWidth if provided as well. (if it's set to 0 or undefined we will let the user resize as much as they want.

const rootElement = this._root.value;

const focusZone = this._root.value;
const rootElement = ReactDOM.findDOMNode(focusZone as any);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you find a way to remove the any?

@dzearing dzearing merged commit d50399a into microsoft:master Mar 21, 2018
@dzearing dzearing deleted the detailsheader-fix branch March 21, 2018 06:00
@microsoft microsoft locked as resolved and limited conversation to collaborators Aug 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants