mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-21 09:09:01 +00:00
Use the first layout when rendering the child of a container
This commit is contained in:
parent
b2ad5f2f21
commit
bbb0e739b6
2 changed files with 5 additions and 1 deletions
|
|
@ -174,6 +174,7 @@ function Container(props) {
|
|||
if (default_visible !== undefined) {
|
||||
style.display = default_visible ? "block" : "none";
|
||||
}
|
||||
|
||||
return (
|
||||
<div data-node-type="container" data-node-id={id} style={style}>
|
||||
{children}
|
||||
|
|
|
|||
|
|
@ -96,7 +96,10 @@ class Container extends MakiObject {
|
|||
|
||||
getcurlayout() {
|
||||
unimplementedWarning("getcurlayout");
|
||||
return;
|
||||
// TODO: For now we just always show the first layout. I think that's the default.
|
||||
return this.children.find(childNode => {
|
||||
return childNode.getclassname() === "Layout";
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue