mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-12-01 03:02:51 +00:00
!36898 圆形按钮不做适老化
Merge pull request !36898 from sunjiakun/button_adapt_old
This commit is contained in:
commit
bc392818c7
@ -352,6 +352,10 @@ bool ButtonLayoutAlgorithm::IsAging(LayoutWrapper* layoutWrapper)
|
||||
auto buttonLayoutProperty = DynamicCast<ButtonLayoutProperty>(layoutWrapper->GetLayoutProperty());
|
||||
CHECK_NULL_RETURN(buttonLayoutProperty, false);
|
||||
|
||||
if (buttonLayoutProperty->HasType() && buttonLayoutProperty->GetType() == ButtonType::CIRCLE) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (buttonLayoutProperty->HasLabel() && buttonLayoutProperty->GetLabel()->empty()) {
|
||||
return false;
|
||||
}
|
||||
|
@ -71,6 +71,10 @@ bool ButtonPattern::NeedAgingUpdateText(RefPtr<ButtonLayoutProperty>& layoutProp
|
||||
CHECK_NULL_RETURN(buttonTheme, false);
|
||||
auto fontScale = pipeline->GetFontScale();
|
||||
|
||||
if (layoutProperty->HasType() && layoutProperty->GetType() == ButtonType::CIRCLE) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (layoutProperty->HasLabel() && layoutProperty->GetLabel()->empty()) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user