diff options
-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 |