Skip to content

Commit 0ba640b

Browse files
committed
with-scrollbars shouldn't apply minimize-w layout style
1 parent b85534b commit 0ba640b

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

examples/dir-tree.raku

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ class DirTreeDemo is TopLevel {
1414
.button(label => 'Quit', process-input => { $.terminal.quit }),
1515
.divider(line-style => 'light1', style => %(set-h => 1)),
1616
.node(
17-
.with-scrollbars(style => %( :!minimize-w ),
17+
.with-scrollbars(
1818
.dir-tree-viewer(id => 'dir-tree',
1919
process-click => -> $node {
2020
self.show-details($node)
2121
}),
2222
),
2323
.divider(line-style => 'light1', style => %(set-w => 1)),
24-
.with-scrollbars(style => %( :!minimize-w, share-w => 2 ),
24+
.with-scrollbars(style => %( share-w => 2 ),
2525
.log-viewer(id => 'details'),
2626
),
2727
),

examples/tree-view.raku

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class TreeViewDemo is TopLevel {
5252
),
5353
.divider(line-style => 'light1', style => %(set-h => 1)),
5454
.node(
55-
.with-scrollbars(
55+
.with-scrollbars(style => (:minimize-w),
5656
.tree-view(id => 'tree', style => %(set-w => 15),
5757
process-click => -> $id, $x, $y {
5858
my $click-log = %.by-id<click-log>;

lib/Terminal/Widgets/Layout.rakumod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,8 +560,7 @@ class Builder {
560560
// die "Must specify a string id for a scrollable to add scrollbars";
561561

562562
with self {
563-
.build-node(WithScrollbars, :vertical,
564-
style => %(:minimize-w, |%style),
563+
.build-node(WithScrollbars, :vertical, :%style,
565564
.node(
566565
$scrollable,
567566
.vscroll(:$scroll-target),

0 commit comments

Comments
 (0)