Skip to content

Commit

Permalink
Merge pull request #2310 from AnkushJadhav/fix/2266
Browse files Browse the repository at this point in the history
Fix: hidden table seperators being rendered incorrectly
  • Loading branch information
andydotxyz committed Jul 7, 2021
2 parents 8f342e0 + 7f59b82 commit 0431028
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 16 deletions.
2 changes: 1 addition & 1 deletion widget/table.go
Expand Up @@ -373,7 +373,7 @@ func (t *tableRenderer) moveIndicators() {
}

for i := divs; i < len(t.dividers); i++ {
t.dividers[divs].Hide()
t.dividers[i].Hide()
}
canvas.Refresh(t.t)
}
Expand Down
6 changes: 0 additions & 6 deletions widget/testdata/table/desktop/hovered.xml
Expand Up @@ -42,12 +42,6 @@
<widget pos="4,79" size="168x1" type="*widget.Separator">
<rectangle fillColor="disabled" size="168x1"/>
</widget>
<widget size="0x0" type="*widget.Separator">
<rectangle fillColor="disabled" size="0x0"/>
</widget>
<widget size="0x0" type="*widget.Separator">
<rectangle fillColor="disabled" size="0x0"/>
</widget>
</widget>
</content>
</canvas>
9 changes: 0 additions & 9 deletions widget/testdata/table/desktop/hovered_out.xml
Expand Up @@ -31,15 +31,6 @@
<widget pos="4,41" size="168x1" type="*widget.Separator">
<rectangle fillColor="disabled" size="168x1"/>
</widget>
<widget size="0x0" type="*widget.Separator">
<rectangle fillColor="disabled" size="0x0"/>
</widget>
<widget size="0x0" type="*widget.Separator">
<rectangle fillColor="disabled" size="0x0"/>
</widget>
<widget size="0x0" type="*widget.Separator">
<rectangle fillColor="disabled" size="0x0"/>
</widget>
</widget>
</content>
</canvas>

0 comments on commit 0431028

Please sign in to comment.