[Time Conductor] Tweak position, appearance

...of datetime picker popups. WTD-1515
This commit is contained in:
Victor Woeltjen
2015-09-15 18:51:44 -07:00
parent 70d9587c9b
commit e34fe1a289
2 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ define(
var body = $document.find('body'),
popup = $compile(TEMPLATE)(scope),
winDim = [$window.innerWidth, $window.innerHeight],
rect = element[0].getBoundingClientRect(),
rect = element.parent()[0].getBoundingClientRect(),
position = [ rect.left, rect.top ],
isLeft = position[0] <= (winDim[0] / 2),
isTop = position[1] <= (winDim[1] / 2);