mirror of
https://github.com/openharmony/ace_ace_engine.git
synced 2026-07-21 01:45:30 -04:00
!1940 bugfix for surfaceNode not create
Merge pull request !1940 from lee/OpenHarmony-3.1-Release
This commit is contained in:
@@ -49,10 +49,6 @@ RefPtr<Component> AddFlexItemComponent(const RefPtr<Component>& component)
|
||||
auto newFlexItem = AceType::MakeRefPtr<FlexItemComponent>(0.0, 1.0, 0.0);
|
||||
newFlexItem->SetChild(composedChild);
|
||||
composedComponent->SetChild(newFlexItem);
|
||||
if (composedChild) {
|
||||
// extend already marked component group with flex item component
|
||||
Component::ExtendRSNode(newFlexItem, composedChild);
|
||||
}
|
||||
return component;
|
||||
}
|
||||
|
||||
@@ -60,10 +56,6 @@ RefPtr<Component> AddFlexItemComponent(const RefPtr<Component>& component)
|
||||
if (!multiComposedComponent) {
|
||||
auto newFlexItem = AceType::MakeRefPtr<FlexItemComponent>(0.0, 1.0, 0.0);
|
||||
newFlexItem->SetChild(component);
|
||||
if (component) {
|
||||
// extend already marked component group with flex item component
|
||||
Component::ExtendRSNode(newFlexItem, component);
|
||||
}
|
||||
return newFlexItem;
|
||||
}
|
||||
|
||||
|
||||
@@ -80,9 +80,9 @@ void GridLayoutElement::ApplyRenderChild(const RefPtr<RenderElement>& renderChil
|
||||
LOGE("fail to create proxy node");
|
||||
return;
|
||||
}
|
||||
renderNode_->AddChild(proxy);
|
||||
proxy->AddChild(renderChild->GetRenderNode());
|
||||
proxy->Attach(context_);
|
||||
renderNode_->AddChild(proxy);
|
||||
}
|
||||
|
||||
void GridLayoutElement::PerformBuild()
|
||||
|
||||
@@ -32,7 +32,6 @@ void RosenRenderGridLayout::Update(const RefPtr<Component>& component)
|
||||
|
||||
void RosenRenderGridLayout::Paint(RenderContext& context, const Offset& offset)
|
||||
{
|
||||
RenderNode::Paint(context, offset);
|
||||
for (const auto& child : GetChildren()) {
|
||||
auto gridLayoutItem = FindChildOfClass<RenderGridLayoutItem>(child);
|
||||
if (gridLayoutItem && gridLayoutItem->IsSelected()) {
|
||||
|
||||
Reference in New Issue
Block a user