Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for auto resize column headers, #10909

Merged
merged 7 commits into from
Jun 17, 2020
Merged

Conversation

smartguest
Copy link
Contributor

@smartguest smartguest commented Jun 13, 2020

The scrolling issue has been fixed by me while Amir made changes to the cell selection plugin so that it no longer triggers when clicking on the resizable handler, allowing header clicking to function properly. When combined, these two fixes address the issue of scrolling and auto resize for results grid.

This PR fixes ##2251

@coveralls
Copy link

coveralls commented Jun 13, 2020

Coverage Status

Coverage increased (+0.5%) to 35.024% when pulling c055204 on alex/fixforautoresizecolumnheaders into 434d017 on main.

@kburtram kburtram changed the base branch from master to main June 15, 2020 06:15
@@ -482,6 +482,7 @@ export abstract class GridTableBase<T> extends Disposable implements IView {
this.table.registerPlugin(new AdditionalKeyBindings());
this._register(this.table.onContextMenu(this.contextMenu, this));
this._register(this.table.onClick(this.onTableClick, this));
this._register(this.table.onHeaderClick(this.onHeaderClick, this));
Copy link
Contributor

Choose a reason for hiding this comment

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

It might help adding a comment on this line of what this listener is responsible for.

@smartguest smartguest merged commit 95107f1 into main Jun 17, 2020
@smartguest smartguest deleted the alex/fixforautoresizecolumnheaders branch June 17, 2020 22:22
ktech99 pushed a commit that referenced this pull request Aug 23, 2020
* Fixed scroll to top

* removed brackets

* Don't trigger the cellSelectionModel when className is the resizable handler

* Added message for header listener

Co-authored-by: Amir Omidi <amomidi@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants