зеркало из https://github.com/github/Rebel.git
Reapply layer properties whenever -setLayer: is invoked too
This commit is contained in:
Родитель
b9a06603b5
Коммит
4f61ad954a
|
@ -180,6 +180,11 @@ static IMP RBLViewDrawRectIMP;
|
|||
self.layer.opaque = self.opaque;
|
||||
}
|
||||
|
||||
- (void)setLayer:(CALayer *)layer {
|
||||
[super setLayer:layer];
|
||||
[self applyLayerProperties];
|
||||
}
|
||||
|
||||
// 10.8+ only.
|
||||
- (void)updateLayer {
|
||||
NSAssert(self.contents != nil, @"%@ does not have contents, %s should not be invoked", self, __func__);
|
||||
|
|
Загрузка…
Ссылка в новой задаче