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: take border size_delta into account when calculating position #204

Merged
merged 1 commit into from
Oct 26, 2022

Conversation

folke
Copy link
Contributor

@folke folke commented Oct 26, 2022

position=50%, for example, will correctly position the popup, but not the border (that contains the popup).

The border win position needs to be offset with half of the size_delta.

@folke
Copy link
Contributor Author

folke commented Oct 26, 2022

Fixing the tests....

@folke folke force-pushed the positoning branch 2 times, most recently from 750c547 to 454e6fc Compare October 26, 2022 16:43
@folke
Copy link
Contributor Author

folke commented Oct 26, 2022

Tests pass :)

@codecov
Copy link

codecov bot commented Oct 26, 2022

Codecov Report

Merging #204 (b6f3a11) into main (f220495) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #204   +/-   ##
=======================================
  Coverage   98.02%   98.03%           
=======================================
  Files          19       19           
  Lines        2281     2286    +5     
=======================================
+ Hits         2236     2241    +5     
  Misses         45       45           
Impacted Files Coverage Δ
lua/nui/popup/border.lua 97.00% <100.00%> (+0.04%) ⬆️
lua/nui/popup/init.lua 99.41% <100.00%> (+<0.01%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Owner

@MunifTanjim MunifTanjim left a comment

Choose a reason for hiding this comment

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

Thanks! 🚀

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.

2 participants