fixed: scrollview white border view in HUD

This commit is contained in:
daboe01
2026-03-07 11:22:41 +01:00
parent 8231d8ddf1
commit 915047b996
2 changed files with 3 additions and 4 deletions
+3 -2
View File
@@ -1596,10 +1596,11 @@ Notifies the delegate when the scroll view has finished scrolling.
- (void)layoutSubviews
{
if (![self isCSSBased] || (_borderType === CPNoBorder))
if (![self isCSSBased])
return;
[self setBackgroundColor:[self currentValueForThemeAttribute:@"background-color-"+CPScrollViewBorderSuffixes[_borderType]]];
if (_borderType !== CPNoBorder)
[self setBackgroundColor:[self currentValueForThemeAttribute:@"background-color-"+CPScrollViewBorderSuffixes[_borderType]]];
if (_scrollerStyle === CPScrollerStyleLegacy)
[[self bottomCornerView] setBackgroundColor:[self currentValueForThemeAttribute:@"bottom-corner-color"]];
-2
View File
@@ -595,14 +595,12 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5;
{
[super setThemeState:aState];
[self setBackgroundColor:[self hasThemeState:CPThemeStateHUD] ? [CPColor clearColor] : [CPColor whiteColor]];
}
- (void)unsetThemeState:(CPThemeState)aState
{
[super unsetThemeState:aState];
[self setBackgroundColor:[self hasThemeState:CPThemeStateHUD] ? [CPColor clearColor] : [CPColor whiteColor]];
}
- (void)_initSubclass