提交 6d8e2273 编写于 作者: S Serge Rider

#14048 Vertical buttons: shift offset on Windows only

上级 49d3ab58
......@@ -32,6 +32,7 @@ import org.jkiss.code.NotNull;
import org.jkiss.dbeaver.ui.ActionUtils;
import org.jkiss.dbeaver.ui.UIStyles;
import org.jkiss.dbeaver.ui.UIUtils;
import org.jkiss.dbeaver.utils.RuntimeUtils;
import org.jkiss.utils.CommonUtils;
public class VerticalButton extends Canvas {
......@@ -240,7 +241,8 @@ public class VerticalButton extends Canvas {
String text = getText();
if (!CommonUtils.isEmpty(text)) {
boolean shiftOffset = (DPIUtil.getDeviceZoom() >= 200);
// Offset shift. Windows only? (14048)
boolean shiftOffset = RuntimeUtils.isWindows() && (DPIUtil.getDeviceZoom() >= 200);
Transform tr = new Transform(e.display);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册