mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[poincare] Layout: add TODOs
This commit is contained in:
@@ -286,6 +286,7 @@ void Layout::collapseSiblings(LayoutCursor * cursor) {
|
||||
Layout rootLayout = root();
|
||||
if (node()->shouldCollapseSiblingsOnRight()) {
|
||||
Layout absorbingChild = childAtIndex(rightCollapsingAbsorbingChildIndex());
|
||||
// TODO: add a horizontal layout only if several siblings.
|
||||
if (absorbingChild.type() != LayoutNode::Type::HorizontalLayout) {
|
||||
Layout horRef = HorizontalLayout::Builder();
|
||||
replaceChild(absorbingChild, horRef, cursor, true);
|
||||
|
||||
@@ -95,6 +95,7 @@ void LayoutCursor::addEmptyMatrixLayout() {
|
||||
}
|
||||
|
||||
void LayoutCursor::addEmptySquareRootLayout() {
|
||||
// TODO: add a horizontal layout only if several children
|
||||
HorizontalLayout child1 = HorizontalLayout::Builder(EmptyLayout::Builder());
|
||||
NthRootLayout newChild = NthRootLayout::Builder(child1);
|
||||
m_layout.addSibling(this, newChild, false);
|
||||
|
||||
Reference in New Issue
Block a user