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

Clip Text Overflow #268

Merged
merged 19 commits into from Jul 19, 2020
Merged

Clip Text Overflow #268

merged 19 commits into from Jul 19, 2020

Conversation

Nibba2018
Copy link
Member

@Nibba2018 Nibba2018 commented Jul 19, 2020

@pep8speaks
Copy link

pep8speaks commented Jul 19, 2020

Hello @Nibba2018! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 4617:25: E127 continuation line over-indented for visual indent

Comment last updated at 2020-07-19 19:53:26 UTC

@Nibba2018 Nibba2018 added 🚀 🐍 GSOC 2020 idea /discussion/ question for GSOC 2020 type:New Feature labels Jul 19, 2020
@Nibba2018 Nibba2018 added this to the v0.6.0 milestone Jul 19, 2020
@Nibba2018 Nibba2018 added the type:Bug Fix Something isn't working label Jul 19, 2020
@codecov
Copy link

codecov bot commented Jul 19, 2020

Codecov Report

Merging #268 into master will decrease coverage by 0.02%.
The diff coverage is 92.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #268      +/-   ##
==========================================
- Coverage   89.07%   89.04%   -0.03%     
==========================================
  Files          19       19              
  Lines        4750     4812      +62     
  Branches      619      629      +10     
==========================================
+ Hits         4231     4285      +54     
- Misses        363      366       +3     
- Partials      156      161       +5     
Impacted Files Coverage Δ
fury/ui.py 88.08% <92.00%> (-0.01%) ⬇️
fury/actor.py 93.01% <0.00%> (-0.31%) ⬇️

@Nibba2018 Nibba2018 requested a review from skoudoro July 19, 2020 16:13
Copy link
Contributor

@skoudoro skoudoro left a comment

Choose a reason for hiding this comment

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

Thank you for this @Nibba2018! Below, a first review but I need to test it. I will come back to you after some tests. Thank you again!

fury/utils.py Outdated Show resolved Hide resolved
fury/utils.py Outdated Show resolved Hide resolved
fury/utils.py Outdated
return original_str

else:
while start_ptr < end_ptr:
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder about the impact of this while for performance. clip_overflow seems to be called often. I need to test it. As a temporary solution, I will be fine but we will have to find a better approach.

Copy link
Member Author

Choose a reason for hiding this comment

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

The complexity of this is around log2(length). The problem is each character has a different height and width.
Also the width of two characters within a string isn't equal to the sum of their individual widths.

@skoudoro
Copy link
Contributor

Ok, it works as expected, no issue. Thank you @Nibba2018! I will wait that you move the function and it will be ready for merge

@Nibba2018
Copy link
Member Author

@skoudoro , codecov patch seems to fail. Any Idea how I can fix that?

@Nibba2018 Nibba2018 requested a review from skoudoro July 19, 2020 20:30
Copy link
Contributor

@skoudoro skoudoro left a comment

Choose a reason for hiding this comment

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

Thank you for fixing this issue @Nibba2018! there is a small pep8 but we will fix it later.I will go ahead and merge your PR.

@skoudoro skoudoro added this to In progress in [GSOC] Create new user interface widget via automation Jul 19, 2020
@skoudoro skoudoro moved this from In progress to Reviewer approved in [GSOC] Create new user interface widget Jul 19, 2020
@skoudoro skoudoro linked an issue Jul 19, 2020 that may be closed by this pull request
2 tasks
@skoudoro skoudoro merged commit 3006614 into fury-gl:master Jul 19, 2020
[GSOC] Create new user interface widget automation moved this from Reviewer approved to Done Jul 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 🐍 GSOC 2020 idea /discussion/ question for GSOC 2020 type:Bug Fix Something isn't working type:New Feature
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Re-implementation of Text Overflow in ListBox2D
3 participants