mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-03-28 15:48:47 +08:00
Only show a placeholder if there is a place that needs holding
This commit is contained in:
@@ -1275,7 +1275,7 @@ static NSInteger incrementIfFound(NSInteger i) {
|
||||
|
||||
[_supernode subnodeDisplayWillStart:self];
|
||||
|
||||
if (_placeholderImage && _placeholderLayer) {
|
||||
if (_placeholderImage && _placeholderLayer && self.layer.contents == nil) {
|
||||
_placeholderLayer.contents = (id)_placeholderImage.CGImage;
|
||||
[self.layer addSublayer:_placeholderLayer];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user