mirror of
https://github.com/NohamR/Reclass.git
synced 2026-05-10 19:59:21 +00:00
fix: don't skip Array in scope width calc — only skip Struct
Array headers like int32_t[10] render in the type column and need their width accounted for. Only Struct (pointer headers) should be excluded from inflating sibling column widths.
This commit is contained in:
@@ -1050,8 +1050,8 @@ ComposeResult compose(const NodeTree& tree, const Provider& prov, uint64_t viewR
|
||||
|
||||
for (int childIdx : state.childMap.value(container.id)) {
|
||||
const Node& child = tree.nodes[childIdx];
|
||||
// Skip struct/array children — pointer headers shouldn't inflate sibling widths
|
||||
if (child.kind == NodeKind::Struct || child.kind == NodeKind::Array)
|
||||
// Skip struct children — pointer headers shouldn't inflate sibling widths
|
||||
if (child.kind == NodeKind::Struct)
|
||||
continue;
|
||||
scopeMaxType = qMax(scopeMaxType, (int)nodeTypeName(child).size());
|
||||
|
||||
@@ -1085,8 +1085,8 @@ ComposeResult compose(const NodeTree& tree, const Provider& prov, uint64_t viewR
|
||||
int rootMaxName = kMinNameW;
|
||||
for (int childIdx : state.childMap.value(0)) {
|
||||
const Node& child = tree.nodes[childIdx];
|
||||
// Skip struct/array children — pointer headers shouldn't inflate sibling widths
|
||||
if (child.kind == NodeKind::Struct || child.kind == NodeKind::Array)
|
||||
// Skip struct children — pointer headers shouldn't inflate sibling widths
|
||||
if (child.kind == NodeKind::Struct)
|
||||
continue;
|
||||
rootMaxType = qMax(rootMaxType, (int)nodeTypeName(child).size());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user