Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Synchronize NSView geometry when a TUIViewNSViewContainer's frame or …

…bounds changes
  • Loading branch information...
commit 2d2daee03c49e81c2b73292eba7d256649162ca4 1 parent c92a38b
@jspahrsummers jspahrsummers authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 lib/UIKit/TUIViewNSViewContainer.m
View
10 lib/UIKit/TUIViewNSViewContainer.m
@@ -82,6 +82,16 @@ - (CGRect)NSViewFrame; {
return [self convertRect:self.bounds toView:self.ancestorTUINSView.rootView];
}
+- (void)setFrame:(CGRect)frame {
+ [super setFrame:frame];
+ [self synchronizeNSViewGeometry];
+}
+
+- (void)setBounds:(CGRect)bounds {
+ [super setBounds:bounds];
+ [self synchronizeNSViewGeometry];
+}
+
- (void)setCenter:(CGPoint)center {
[super setCenter:center];
[self synchronizeNSViewGeometry];
Please sign in to comment.
Something went wrong with that request. Please try again.