// 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_decorator.hpp" 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