Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/xwt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVsevolod Kukol <sevoku@microsoft.com>2021-07-08 23:05:50 +0300
committerGitHub <noreply@github.com>2021-07-08 23:05:50 +0300
commit7203c2c4198f4b29a2fa8c1afc526113941c8370 (patch)
treea4aa3006eeb8603217733190755d91aba2ff0fda
parent185dfa8bd89c8244cb96d1680071452a0f6b7b6c (diff)
parent024b20e2db8262d8dc11c689fecc417b24245973 (diff)
Merge pull request #1061 from mono/dev/sevoku/fix-table-redraw
[Mac] Fix TableView selection rendering when building with Xcode 12
-rw-r--r--Xwt.XamMac/Xwt.Mac/TableViewBackend.cs16
1 files changed, 7 insertions, 9 deletions
diff --git a/Xwt.XamMac/Xwt.Mac/TableViewBackend.cs b/Xwt.XamMac/Xwt.Mac/TableViewBackend.cs
index 1ac67c47..e9f62ce9 100644
--- a/Xwt.XamMac/Xwt.Mac/TableViewBackend.cs
+++ b/Xwt.XamMac/Xwt.Mac/TableViewBackend.cs
@@ -446,17 +446,15 @@ namespace Xwt.Mac
// may be drawn already and it will not be redrawn even
// if Selection has been changed.
NeedsDisplay = true;
- // Since Big Sur NSTableView doesn't refresh its subviews on selection change
- if (MacSystemInformation.OsVersion >= MacSystemInformation.BigSur)
+
+ // FIXME: when building using Xcode 12, macOS stops redrawing subviews on selection change
+ // We have always a CompositeCell with Subviews for real cell views
+ foreach (var sub in Subviews)
{
- // We have always a CompositeCell with Subviews for real cell views
- foreach (var sub in Subviews)
+ sub.NeedsDisplay = true;
+ foreach (var subsub in sub.Subviews)
{
- sub.NeedsDisplay = true;
- foreach (var subsub in sub.Subviews)
- {
- subsub.NeedsDisplay = true;
- }
+ subsub.NeedsDisplay = true;
}
}
}