Commit aa3a585b authored by Pettersson Tomas's avatar Pettersson Tomas

adjsuted timpickerpopup position

parent b9063c55
...@@ -20,6 +20,10 @@ ...@@ -20,6 +20,10 @@
color: black; color: black;
} }
.exercise-control .uk-dropdown, .uk-dropdown-blank {
top: -200px;
}
.exercise-control .irs-to { .exercise-control .irs-to {
background-color: #ddd; background-color: #ddd;
color: black; color: black;
......
...@@ -408,9 +408,10 @@ var EXTrajectory = (function (_super) { ...@@ -408,9 +408,10 @@ var EXTrajectory = (function (_super) {
} }
else { else {
var diff = Math.abs(self.from - newdate); var diff = Math.abs(self.from - newdate);
var nrofhours = Math.round(((diff / 1000) / 60) / 60); var nrofhours = ((diff / 1000) / 60) / 60;
if (nrofhours <= 72) { if (nrofhours <= 72) {
self.durationhours = nrofhours; self.durationhours = nrofhours;
self.to = moment.utc(self.endDateInput.value + ' ' + self.endTimeInput.value, self.datetimeFormat);
self.refreshTrajectory(); self.refreshTrajectory();
self.fireChangeFn(self); self.fireChangeFn(self);
delete self.durationhours; delete self.durationhours;
...@@ -735,6 +736,7 @@ var EXTrajectory = (function (_super) { ...@@ -735,6 +736,7 @@ var EXTrajectory = (function (_super) {
EXTrajectory.prototype.clear = function () { EXTrajectory.prototype.clear = function () {
var self = this; var self = this;
_super.prototype.clear.call(this); _super.prototype.clear.call(this);
self.drawnfeature = null;
self.trajectoryLabelLayer.clearLayers(); self.trajectoryLabelLayer.clearLayers();
self.trajectoryLayer.clearLayers(); self.trajectoryLayer.clearLayers();
self.trajMarkerArray = []; self.trajMarkerArray = [];
......
...@@ -20,6 +20,10 @@ ...@@ -20,6 +20,10 @@
color: black; color: black;
} }
.exercise-control .uk-dropdown, .uk-dropdown-blank {
top: -200px;
}
.exercise-control .irs-to { .exercise-control .irs-to {
background-color: #ddd; background-color: #ddd;
color: black; color: black;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment