Commit Graph

32 Commits

Author SHA1 Message Date
BDisp
1c633efbad Fix unit test because OnLeave is now invoked on toplevel removing, preventing two views having focus. 2023-08-11 13:21:21 -06:00
BDisp
74aedd25bf Fixes #2789. StatusItem should have a disabled attribute if it can't execute. 2023-08-11 12:02:35 -06:00
BDisp
b40d2a65a9 Added hosted scroll bar unit test. 2023-08-11 07:00:07 -06:00
BDisp
20650213c2 Fix paste not working and invoke ContentsChanged where is needed. Add unit test. 2023-08-11 07:00:07 -06:00
Tigger Kindel
462459bc14 Revert - Test that stopOnFail works during github action 2023-07-26 07:43:26 -06:00
Tigger Kindel
cc58771d6e Test that stopOnFail works during github action 2023-07-26 07:43:26 -06:00
BDisp
9f6fcbab79 Rename to CheckBoxTests class. 2023-07-20 10:01:15 -06:00
BDisp
c5e32e102f Rename Checkbox to CheckBox. 2023-07-20 10:01:15 -06:00
Tigger Kindel
155e5337a9 got rid of compile warnings in tests 2023-07-19 08:37:33 -06:00
BDisp
db78fe28bc Fixes #2717. Label not display fully when resizing terminal. (#2718)
* Fixes #2717. Label not display fully when resizing terminal.

* Fixes #2719. View Move and ViewToScreen shouldn't use Clipped parameter as true by default but only for cursor.

* Fixes #2720. TextFormatter.Draw shouldn't set the Driver.Clip.

* Add braces.

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2023-07-05 16:53:27 -06:00
BDisp
ffb135c0fe Fixes #2705. ListView does not render correctly before focus. (#2707) 2023-07-05 16:47:18 -06:00
Thomas Nind
f5ca5b0781 Adds TreeView MaxDepth (#2652) 2023-05-21 23:27:01 +02:00
Thomas Nind
8f199cd765 Add ITreeViewFilter (#2599)
Co-authored-by: Tig <tig@users.noreply.github.com>
2023-05-10 06:37:24 +02:00
BDisp
1525c5021e Fixes #2429. Error when replacing a word in textView. 2023-03-22 19:37:16 +00:00
BDisp
9cfa78a033 Fixes #2354. View.Redraw doesn't clear itself and PositionCursor doesn't ensure focus when a prior view was disabled. (#2355)
* Fixes #2354. View should have a IgnoreHasFocusPropertyOnRedraw property to prevent unnecessary derived class.

* Removed IgnoreHasFocusPropertyOnRedraw property.

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2023-02-21 14:23:40 +13:00
BDisp
47eb43fd6e Fixes 2368. Nested views with height of 1 not rendering correctly. (#2370) 2023-02-21 13:55:07 +13:00
BDisp
c85ff954aa Illustrates #2331 (Scrollview not respecting clip) does not reproduce (#2332)
* Proves that the issue #2331 don't have reason to happen.

* fixes #2336

* Fixes #2331. ScrollView may not be honoring clip region; CustomButton shows outside

* More appropriate solution for the issue #2331.

* Start refactoring LineCanvas for mixing line style support (e.g. double into single)

* Add remaining resolvers

* Implement corner border style mixing in LineCanvas

* Refactor and simplify resolvers

* Move tests to Core folder and namespace to Terminal.Gui.CoreTests

* Fixes #2333. TextField is selecting badly a word on double click.

* Add unit test deleting a word with accented char.

* Fixes 2331. ScrollView may not be honoring clip region.

* Add a custom button scenario.

* Fixes #2350. Clipping broke (see Clipping scenario).

* Is preferable use NeedDisplay instead of Bounds.

---------

Co-authored-by: Tig Kindel <tig@users.noreply.github.com>
Co-authored-by: tznind <tznind@dundee.ac.uk>
2023-02-21 00:53:38 +13:00
BDisp
29b92a3610 Add unit test deleting a word with accented char. 2023-02-09 14:12:51 +00:00
BDisp
03b20371f6 Fixes #2333. TextField is selecting badly a word on double click. 2023-02-08 19:17:15 +00:00
BDisp
5da7665e92 Fixes #2328. TextView Autocomplete triggered by cursor move. 2023-02-08 00:12:52 +00:00
Tig
ff2869c9bf Merge branch 'develop' into fixes_2296_attribute_make 2023-02-07 16:34:44 +09:00
Tig
57eab6767d Merge branch 'develop' into normalize-drivers-fix_2317 2023-02-06 07:11:27 +09:00
Tig
c18d153b76 Merge branch 'develop' into fixes_2296_attribute_make 2023-02-06 07:08:44 +09:00
BDisp
788eed4a4d Fixes #2317. Drivers do not normalize accented letters. 2023-02-05 00:25:14 +00:00
BDisp
b7791992cc Added unit test for move down/right. 2023-01-30 13:13:11 +00:00
BDisp
cd5655fc95 Fixes #2308. Redraw passed bounds bigger than its client area. 2023-01-29 22:24:01 +00:00
tznind
ab398b93cb Make OnTabClicked fire for clicks in empty space and fix Notepad to only show context menu on right click. 2023-01-21 08:31:17 +00:00
Charlie Kindel
7f563244eb Made Attribute Make more robust 2023-01-20 15:50:11 -07:00
Thomas
8b8bb2ab60 Test for TabClicked event 2023-01-20 20:05:53 +00:00
Tig Kindel
9232a2bd59 Merge branch 'develop' into unittest_reorg 2023-01-15 19:00:22 -07:00
Tig Kindel
fa048da358 Merge branch 'develop' into unittest_reorg 2023-01-15 18:34:14 -07:00
Tig Kindel
7454dac942 Reorg of unit tests 2023-01-15 18:33:38 -07:00