diff options
author | Bret Johnson <bret.johnson@microsoft.com> | 2021-09-30 19:36:58 +0300 |
---|---|---|
committer | Bret Johnson <bret.johnson@microsoft.com> | 2021-09-30 19:36:58 +0300 |
commit | 6361e64631e6677ddbe3ff496a23d49aeab4c048 (patch) | |
tree | b40d0ba2a77a7eda57de178c7f8ed9d302ff5337 | |
parent | 16d9ce5f175680e1ad7f3774e6b354194389809c (diff) |
Update comment
-rw-r--r-- | Xwt.XamMac/Xwt.Mac/PanedBackend.cs | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/Xwt.XamMac/Xwt.Mac/PanedBackend.cs b/Xwt.XamMac/Xwt.Mac/PanedBackend.cs index 13b7e41e..17729a25 100644 --- a/Xwt.XamMac/Xwt.Mac/PanedBackend.cs +++ b/Xwt.XamMac/Xwt.Mac/PanedBackend.cs @@ -24,7 +24,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -using System;
+using System; using AppKit; using CoreGraphics; using Foundation; @@ -146,23 +146,6 @@ namespace Xwt.Mac } public ViewBackend Backend { get; set; } -#if NOTNEEDED - public ViewBackend Backend { - get { - return backend; - } - set { - if (value != null) { - backend = value; - - if (Frame.Width == 0) - needsDividerSet = true; - else - SetDividerPosition(); - } - } - } -#endif public override CGRect Frame { @@ -180,7 +163,9 @@ namespace Xwt.Mac } public void SetDividerPosition(nfloat position) - { + { + // When the split view is first created we need to wait to set the divider position, + // until the pane has its full (non zero) width. If set too early, it'll be ignored. if (Frame.Width == 0) delayedSetDividerPosition = position; else |