|
|
@@ -427,15 +427,9 @@ protected:
|
|
|
if (child1) paned->set_start_child(*child1);
|
|
|
if (child2) paned->set_end_child(*child2);
|
|
|
|
|
|
- // Set initial position based on ratio - defer until widget is realized
|
|
|
- auto node_ratio = node->ratio;
|
|
|
- auto node_type = node->type;
|
|
|
- paned->signal_realize().connect([paned, node_ratio, node_type]() {
|
|
|
- // Get the actual allocated size and apply the ratio
|
|
|
- auto allocation = paned->get_allocation();
|
|
|
- int size = (node_type == LayoutNode::Type::HorizontalSplit) ? allocation.get_height() : allocation.get_width();
|
|
|
- paned->set_position(static_cast<int>(size * node_ratio));
|
|
|
- });
|
|
|
+ // Set initial position based on ratio - use default 50/50 split for now
|
|
|
+ // TODO: Calculate proper size after widget is allocated
|
|
|
+ paned->set_position(300); // Reasonable default split position
|
|
|
|
|
|
return paned;
|
|
|
}
|