Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Properly disable dragging on and left of a locked column #72

Merged
merged 6 commits into from
Sep 26, 2019

Conversation

Blackbaud-TrevorBurch
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Sep 25, 2019

Codecov Report

Merging #72 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #72      +/-   ##
==========================================
+ Coverage   99.82%   99.82%   +<.01%     
==========================================
  Files          10       10              
  Lines         570      585      +15     
  Branches       83       87       +4     
==========================================
+ Hits          569      584      +15     
  Misses          1        1
Impacted Files Coverage Δ
...rc/app/public/modules/grid/grid-adapter.service.ts 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 01c1e7d...eeff951. Read the comment docs.

const siblingDiv = sibling.querySelector('div');
let isLeftOfLocked = false;

for (let i = (columns.length - 1); i >= 0; i--) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Any chance we could encapsulate this logic so its not repeated? Maybe something named isLeftOfLocked() that returns a boolean?

Copy link
Member Author

Choose a reason for hiding this comment

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

});
}

public setStyle(el: ElementRef, style: string, value: string): void {
this.renderer.setStyle(el.nativeElement, style, value);
}

private isLeftOfLocked(sourceColumn: HTMLElement, columns: NodeListOf<Element>) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Needs return type :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@Blackbaud-AlexKingman Blackbaud-AlexKingman left a comment

Choose a reason for hiding this comment

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

LGTM

@Blackbaud-TrevorBurch Blackbaud-TrevorBurch merged commit 9ee7ba9 into master Sep 26, 2019
@Blackbaud-TrevorBurch Blackbaud-TrevorBurch deleted the locked-left-columns branch September 26, 2019 15:48
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