Skip to content

Commit 72e6319

Browse files
committed
Use SiliconFix wherever a Tree or Table is instantiated.
1 parent 6b47b34 commit 72e6319

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Diff for: durian-swt/src/main/java/com/diffplug/common/swt/ColumnFormat.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2020-2021 DiffPlug
2+
* Copyright (C) 2020-2022 DiffPlug
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -104,6 +104,7 @@ protected static Table buildTable(Composite parent, int style, boolean linesVisi
104104
SwtMisc.assertClean(parent);
105105
// create the control
106106
Table control = new Table(parent, style);
107+
SiliconFix.fix(control);
107108
control.setLinesVisible(linesVisible);
108109
control.setHeaderVisible(headerVisible);
109110

@@ -152,6 +153,7 @@ protected static Tree buildTree(Composite parent, int style, boolean linesVisibl
152153
SwtMisc.assertClean(parent);
153154
// create the control
154155
Tree control = new Tree(parent, style);
156+
SiliconFix.fix(control);
155157
control.setLinesVisible(linesVisible);
156158
control.setHeaderVisible(headerVisible);
157159

Diff for: durian-swt/src/main/java/com/diffplug/common/swt/widgets/AbstractSmoothTable.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020 DiffPlug
2+
* Copyright (C) 2020-2022 DiffPlug
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
1616
package com.diffplug.common.swt.widgets;
1717

1818

19+
import com.diffplug.common.swt.SiliconFix;
1920
import java.util.function.DoubleConsumer;
2021
import org.eclipse.swt.SWT;
2122
import org.eclipse.swt.graphics.Point;
@@ -58,6 +59,7 @@ abstract class AbstractSmoothTable extends Composite {
5859
}
5960
// the table can't have the BORDER
6061
table = new Table(this, style & (~SWT.BORDER));
62+
SiliconFix.fix(table);
6163
this.setBackground(table.getBackground());
6264
rowHeight = table.getItemHeight();
6365
itemCount = table.getItemCount();

0 commit comments

Comments
 (0)