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: Add startingRect scroll position to cloned node. #66

Merged
merged 1 commit into from
Sep 28, 2017

Conversation

elliotwesoff
Copy link

@elliotwesoff elliotwesoff commented Sep 25, 2017

This fixes an issue where elements that have been scrolled are losing their scroll position during resize. It takes the scrollTop and scrollLeft values of the original element and applies it to the ghost element.

I was going to write a test for it but I couldn't get Karma to run the already existing tests without detaching from Chrome, running out of memory, etc. Perhaps someone could help me out with that task. :)

@codecov-io
Copy link

codecov-io commented Sep 25, 2017

Codecov Report

Merging #66 into master will increase coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #66      +/-   ##
==========================================
+ Coverage   95.43%   95.47%   +0.03%     
==========================================
  Files           4        4              
  Lines         285      287       +2     
  Branches       42       42              
==========================================
+ Hits          272      274       +2     
  Misses          8        8              
  Partials        5        5
Impacted Files Coverage Δ
src/resizable.directive.ts 96% <100%> (+0.03%) ⬆️

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 b8ab1c7...c2e6ba3. Read the comment docs.

@mattlewis92
Copy link
Owner

LGTM, thanks! re the tests, are you on the latest chrome / running npm run test:watch ?

@elliotwesoff
Copy link
Author

elliotwesoff commented Sep 26, 2017

@mattlewis92 No prob! I am on the latest Chrome, but I was just using npm test.

@elliotwesoff
Copy link
Author

Hey @mattlewis92 , any idea if this will be merged or not?

@mattlewis92 mattlewis92 merged commit a056154 into mattlewis92:master Sep 28, 2017
@mattlewis92
Copy link
Owner

Oops sorry, I am away travelling atm and forgot about this. Will cut a release now 😄

@mattlewis92
Copy link
Owner

Released as 1.2.3 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants