Skip to content

Fixes 2142. Dim.Combine wasn't calculating well.#2145

Merged
tig merged 5 commits intogui-cs:developfrom
BDisp:dim-combine-calc-fix
Nov 1, 2022
Merged

Fixes 2142. Dim.Combine wasn't calculating well.#2145
tig merged 5 commits intogui-cs:developfrom
BDisp:dim-combine-calc-fix

Conversation

@BDisp
Copy link
Copy Markdown
Collaborator

@BDisp BDisp commented Oct 31, 2022

Fixes #2142- Dim.Combine wasn't calculating considering each Dim type and wasn't recursive running.

Pull Request checklist:

  • I've named my PR in the form of "Fixes #issue. Terse description."
  • My code follows the style guidelines of Terminal.Gui - if you use Visual Studio, hit CTRL-K-D to automatically reformat your files before committing.
  • My code follows the Terminal.Gui library design guidelines
  • I ran dotnet test before commit
  • I have made corresponding changes to the API documentation (using /// style comments)
  • My changes generate no new warnings
  • I have checked my code and corrected any poor grammar or misspellings
  • I conducted basic QA to assure all features are working

@tznind
Copy link
Copy Markdown
Collaborator

tznind commented Oct 31, 2022

Nice thanks for this fix. Does the issue exist in PosCombine too? or was it just Dim that had the issue? Worth replicating the test for Pos even if it is a solved problem.

@BDisp
Copy link
Copy Markdown
Collaborator Author

BDisp commented Oct 31, 2022

Nice thanks for this fix. Does the issue exist in PosCombine too? or was it just Dim that had the issue? Worth replicating the test for Pos even if it is a solved problem.

Thanks for the remember. I'll check that too.

@BDisp BDisp marked this pull request as draft October 31, 2022 13:54
@BDisp
Copy link
Copy Markdown
Collaborator Author

BDisp commented Oct 31, 2022

Nice thanks for this fix. Does the issue exist in PosCombine too? or was it just Dim that had the issue? Worth replicating the test for Pos even if it is a solved problem.

@tznind do you have any unit test that will fail with the Pos.Combine?

@BDisp BDisp marked this pull request as ready for review October 31, 2022 17:10
@BDisp
Copy link
Copy Markdown
Collaborator Author

BDisp commented Oct 31, 2022

It seems that there isn't issue with the Pos.Combine.

@tig tig merged commit d7da802 into gui-cs:develop Nov 1, 2022
@BDisp BDisp deleted the dim-combine-calc-fix branch November 1, 2022 05:58
This was referenced Nov 4, 2022
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.

Dim.Percent(50)+1 does not work as expected

3 participants