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

Fixing column dragging for fixed columns #74

Merged
merged 1 commit into from
Nov 2, 2016

Conversation

KamranAsif
Copy link
Contributor

Description

Dragging a fixed column won't attempt to scroll the grid

Motivation and Context

SS-17697

How Has This Been Tested?

Tested in column draggable example and in LD

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.


var fixedColumnsWidth = this.state.bodyFixedColumns.reduce((sum, column) => sum + column.props.width, 0);
var relativeWidth = this.props.width - fixedColumnsWidth;
if (!isFixedColumn) {
Copy link
Member

Choose a reason for hiding this comment

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

interesting, so this means we won't scroll through fixed columns but I guess there's no use case for that.

@wcjordan
Copy link
Member

wcjordan commented Nov 2, 2016

lgtm, but you mean fixed columns, not fixed rows, right?

@KamranAsif
Copy link
Contributor Author

KamranAsif commented Nov 2, 2016

Wops, yeah, I'll update the title

@KamranAsif KamranAsif changed the title Fixing column dragging for fixed rows Fixing column dragging for fixed columns Nov 2, 2016
@KamranAsif KamranAsif merged commit 063e198 into schrodinger:master Nov 2, 2016
@KamranAsif KamranAsif deleted the SS-17697-frozen-reorder branch November 2, 2016 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants