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

Fixes #3407. Border Subviews #3409

Draft
wants to merge 109 commits into
base: v2_develop
Choose a base branch
from
Draft

Conversation

tig
Copy link
Collaborator

@tig tig commented Apr 16, 2024

Fixes

Proposed Changes/Todos

  • Todo 1

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

tig added 30 commits March 14, 2024 07:30
tig added 26 commits April 12, 2024 14:52
Updated several classes to improve viewport and content size handling.

Added `SetFrame` method to `View` class in `ViewLayout.cs` and replaced direct `_frame` property setting.

Updated `OnLayoutStarted` and `OnLayoutComplete` methods to take `ContentSize` instead of `oldViewport`. Added `ViewportChanged` event and `OnViewportChanged` method to `View` class in `ViewContent.cs`.

Updated `DrawEventArgs` and `LayoutEventArgs` classes in `ViewEventArgs.cs` to include new and old viewport properties and removed `Rectangle` property.

Updated `OnDrawContentComplete` method in `ViewDrawing.cs` to take `DrawEventArgs` instead of `Rectangle`.

Updated `SetViewport` method in `ViewContent.cs` to trigger `OnViewportChanged` event.

Added check in `ListView.cs` for view initialization before setting `ContentSize` and `Viewport`.

Updated `FileDialog` class in `FileDialog.cs` to use `NewViewport.Width` instead of `e.Rectangle.Width`.

Updated `ViewEventArgs` class in `ViewEventArgs.cs` to include a `view` parameter in its constructor.
Fixed ContentSize < 0 issue.
Updated the versions of various packages across four projects. In `ReactiveExample.csproj`, the `ReactiveUI` package was updated. In `Terminal.Gui.csproj`, the `System.IO.Abstractions` and `System.Text.Json` packages were updated. In `UICatalog.csproj`, the `Microsoft.VisualStudio.Azure.Containers.Tools.Targets`, `SixLabors.ImageSharp`, and `CsvHelper` packages were updated. In `UnitTests.csproj`, the `ReportGenerator`, `TestableIO.System.IO.Abstractions.TestingHelpers`, `xunit`, `xunit.runner.visualstudio`, and `coverlet.collector` packages were updated.
Fixed GetFocusColor to not show focus if nothing else can be foucused
@tig
Copy link
Collaborator Author

tig commented Apr 16, 2024

lJyDTDm 1

@BDisp
Copy link
Collaborator

BDisp commented Apr 16, 2024

TextField is drawing over the Border. Clipping problem?

@tig
Copy link
Collaborator Author

tig commented Apr 16, 2024

TextField is drawing over the Border. Clipping problem?

Please don't look at this yet. It is almost completely broken.

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.

None yet

2 participants