Skip to content

Commit db24cbc

Browse files
committed
Add the missing mac aarch64 code.
1 parent 5dd72a3 commit db24cbc

File tree

1 file changed

+34
-0
lines changed
  • durian-swt.cocoa.macosx.aarch64/src/main/java/com/diffplug/common/swt/widgets

1 file changed

+34
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*
2+
* Copyright (C) 2020-2022 DiffPlug
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package com.diffplug.common.swt.widgets;
17+
18+
19+
import org.eclipse.swt.internal.cocoa.NSPoint;
20+
import org.eclipse.swt.widgets.Composite;
21+
22+
public final class SmoothTable extends AbstractSmoothTable.Scrollable {
23+
public SmoothTable(Composite parent, int tableStyle) {
24+
super(parent, tableStyle);
25+
}
26+
27+
@Override
28+
protected void setTopPixelWithinTable(int topPixel) {
29+
NSPoint pt = new NSPoint();
30+
pt.x = 0;
31+
pt.y = topPixel;
32+
table.view.scrollPoint(pt);
33+
}
34+
}

0 commit comments

Comments
 (0)