mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-19 02:29:58 +00:00
sovled bug that causes sometimes minus values in LocationPointerCompass
This commit is contained in:
1 parent
1fe88aad63
commit
df7d6cef13
1 file changed
+2
-1
+2
-1
@@ -78,7 +78,8 @@ public class LocationPointerCompass extends AbsolutePanel implements HasWidgets,
|
||||
compassNeedle.getElement().getStyle().setProperty("transform", "rotate(" + winddirectionformatted + "deg)");
|
||||
compassNeedle.getElement().getStyle()
|
||||
.setProperty("webkitTransform", "rotate(" + winddirectionformatted + "deg)");
|
||||
angleToPointetLocationLabel.setText(winddirectionformatted + "°");
|
||||
String winddirectionFormattedForLabel = NumberFormat.getFormat("#0").format((newDirection-angleOffset < 0) ? 360-newDirection-angleOffset : newDirection-angleOffset);
|
||||
angleToPointetLocationLabel.setText(winddirectionFormattedForLabel+"°");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user