mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-11-27 01:00:50 +00:00
commit
f9adfcb129
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user