Commit 7d06af29 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

MacOSX/Framework: Make sure the layer will resize on bounds change.

parent 1b693963
...@@ -70,6 +70,7 @@ ...@@ -70,6 +70,7 @@
self.layoutManager = layoutManager; self.layoutManager = layoutManager;
[self insertSublayer:voutLayer atIndex:0]; [self insertSublayer:voutLayer atIndex:0];
[self setNeedsDisplayOnBoundsChange:YES];
[CATransaction commit]; [CATransaction commit];
} }
......
...@@ -141,6 +141,7 @@ ...@@ -141,6 +141,7 @@
[aLayer setNeedsLayout]; [aLayer setNeedsLayout];
[aLayer setNeedsDisplay]; [aLayer setNeedsDisplay];
[rootLayer setNeedsDisplayOnBoundsChange:YES];
[rootLayer setNeedsDisplay]; [rootLayer setNeedsDisplay];
[rootLayer layoutIfNeeded]; [rootLayer layoutIfNeeded];
[CATransaction commit]; [CATransaction commit];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment