I plan to file a bug report on this unless someone has a better idea to fix it.
I have an outline view in a scroller. The view has two fixed columns on the left, then an editable name field. There are five levels in the data hierarchy in the name field. The view is set to expand the name field column with the view width if the window is expanded. Initially, the view shows only the top level of the hierarchy. If I expand an item, everything looks fine. Then, when I try to edit any name field, the outline view apparently expands by the amount of the level offset, at which point the horizontal scrollbar appears. Unfortunately, it abruptly shifts the view to the far left, giving the user (and for awhile, myself) the impression that that the first two columns have disappeared. This is not acceptable behavior. So far I have not figured out a workaround. This only happens the first time. If the user sufficiently expands the view size AFTER expanding an item or editing, this behavior does not occur. If the view is expanded first, then an item is expanded, it does occur. My theory is the the text fields in the outline view are getting shifted to the right with item expansion, but the scrollView isn't get notified until text editing starts. If that's the case, the fix would likely be to initially shorten the shifted text fields by the shifted amount so that they still fit in the containing view width. Apparently, expanding the view eventually lines up the right ends correctly. Also, it the outline is in the first column, like most of the examples, this would likely not show up. _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
