mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-08-17 14:46:38 +08:00

Fix all the diagnostics reported. Bug: https://github.com/ArthurSonzogni/FTXUI/issues/828
23 lines
611 B
C++
23 lines
611 B
C++
// Copyright 2020 Arthur Sonzogni. All rights reserved.
|
|
// Use of this source code is governed by the MIT license that can be found in
|
|
// the LICENSE file.
|
|
#include <ftxui/dom/node.hpp> // for Node, Elements
|
|
|
|
#include "ftxui/dom/node_decorator.hpp"
|
|
#include "ftxui/dom/requirement.hpp" // for Requirement
|
|
#include "ftxui/screen/box.hpp" // for Box
|
|
|
|
namespace ftxui {
|
|
|
|
void NodeDecorator::ComputeRequirement() {
|
|
Node::ComputeRequirement();
|
|
requirement_ = children_[0]->requirement();
|
|
}
|
|
|
|
void NodeDecorator::SetBox(Box box) {
|
|
Node::SetBox(box);
|
|
children_[0]->SetBox(box);
|
|
}
|
|
|
|
} // namespace ftxui
|