File tree Expand file tree Collapse file tree 1 file changed +9
-12
lines changed
src/Core/Styling/Categories Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -445,22 +445,19 @@ + (void)updateStyles:(id<PXStyleable>)styleable recursively:(bool)recurse
445
445
{
446
446
if (styleable.styleMode == PXStylingNormal)
447
447
{
448
- if (recurse )
448
+ for ( id <PXStyleable> child in styleable. pxStyleChildren )
449
449
{
450
- for ( id <PXStyleable> child in styleable. pxStyleChildren )
450
+ if ([ child conformsToProtocol: @protocol (PXVirtualControl)] && child. styleMode == PXStylingNormal )
451
451
{
452
- if ([ child conformsToProtocol: @protocol (PXVirtualControl)] && child. styleMode == PXStylingNormal )
452
+ [PXStyleUtils enumerateStyleableDescendants: child usingBlock: ^( id <PXStyleable> styleable, BOOL *stop, BOOL *stopDescending )
453
453
{
454
- [PXStyleUtils enumerateStyleableDescendants: child usingBlock: ^( id <PXStyleable> styleable, BOOL *stop, BOOL *stopDescending )
454
+ if ([styleable conformsToProtocol: @protocol (PXVirtualControl)] && styleable. styleMode == PXStylingNormal )
455
455
{
456
- if ([styleable conformsToProtocol: @protocol (PXVirtualControl)] && styleable.styleMode == PXStylingNormal)
457
- {
458
- [PXStyleUtils updateStyleForStyleable: styleable];
459
- }
460
- }];
461
-
462
- [PXStyleUtils updateStyleForStyleable: child];
463
- }
456
+ [PXStyleUtils updateStyleForStyleable: styleable];
457
+ }
458
+ }];
459
+
460
+ [PXStyleUtils updateStyleForStyleable: child];
464
461
}
465
462
}
466
463
You can’t perform that action at this time.
0 commit comments