|
From: | Lundberg, Johannes |
Subject: | Re: NSView draw order messed up |
Date: | Wed, 2 Oct 2013 19:42:08 +0900 |
The order in which the subviews are drawn seems random. Sometimes expected behavior, sometimes (actually most of the time) last added view gets drawn behind a previously added view.Source is all from svn recently downloaded.HiI'm getting some inconsistent behavior when drawing NSView and NSImageView.
Using - (void)addSubview:(NSView *)aView positioned:(NSWindowOrderingMode)place relativeTo:(NSView *)otherView doesn't seems to do any difference...
Backend is cairo.View hierarchy isNSWindow
|NSScrollView
|NSView (scrollview's documentView)
|[ a bunch of views which are drawn in wrong order (not the order they are added).. ]Don't know if this is a bug or if it some weird effect of having view overlapping each other inside a scrollview.. Anyone with insight?
--Johannes Lundberg
[Prev in Thread] | Current Thread | [Next in Thread] |