mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 18:25:30 +00:00
Only render the current layer for each container
This commit is contained in:
parent
bc1d4a9324
commit
e0b7381545
1 changed files with 6 additions and 1 deletions
|
|
@ -176,9 +176,14 @@ function Container(props) {
|
|||
style.display = default_visible ? "block" : "none";
|
||||
}
|
||||
|
||||
const layout = node.getcurlayout();
|
||||
if (layout == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<div data-node-type="container" data-node-id={id} style={style}>
|
||||
<XmlChildren node={node} />
|
||||
<XmlNode node={layout} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue