We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5a8816 commit 485ecabCopy full SHA for 485ecab
graf2d/cocoa/src/QuartzWindow.mm
@@ -2612,6 +2612,18 @@ - (BOOL) acceptsCrossingEvents : (unsigned) eventMask
2612
return accepts;
2613
}
2614
2615
+//______________________________________________________________________________
2616
+- (void)didAddSubview:(NSView *)subview
2617
+{
2618
+ self.clipsToBounds = YES;
2619
+}
2620
+
2621
2622
+- (void)willRemoveSubview:(NSView *)subview
2623
2624
+ self.clipsToBounds = self.subviews.count > 1;
2625
2626
2627
//______________________________________________________________________________
2628
- (void) addChild : (NSView<X11Window> *) child
2629
{
0 commit comments