!17278 Web显示错误

Merge pull request !17278 from Niko-Yuan/updateWeb
This commit is contained in:
openharmony_ci 2024-11-20 13:57:26 +00:00 committed by Gitee
commit f9adfcb129
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1453,7 +1453,9 @@ void RSUniRenderUtil::DealWithNodeGravity(RSSurfaceRenderNode& node, const Scree
CheckForceHardwareAndUpdateDstRect(node);
// we do not need to do additional works for Gravity::RESIZE and if frameSize == boundsSize.
if (frameGravity == Gravity::RESIZE || (ROSEN_EQ(frameWidth, boundsWidth) && ROSEN_EQ(frameHeight, boundsHeight))) {
if (frameGravity == Gravity::RESIZE
|| (node.IsRosenWeb() && frameGravity == Gravity::TOP_LEFT)
|| (ROSEN_EQ(frameWidth, boundsWidth) && ROSEN_EQ(frameHeight, boundsHeight))) {
return;
}