Position onboarding popover after measuring position

This commit is contained in:
Alasdair Smith 2017-09-27 17:45:28 +01:00
parent 3259b871c0
commit 7e407621e9
3 changed files with 8 additions and 2 deletions

View file

@ -1,6 +1,6 @@
div.full-size.pdf(ng-controller="PdfController")
.toolbar.toolbar-tall
.btn-group(
.btn-group#recompile(
dropdown,
tooltip-html="'"+translate('recompile_pdf')+" <span class=\"keyboard-shortcut\">({{modifierKey}} + Enter)</span>'"
tooltip-class="keyboard-tooltip"

View file

@ -2,5 +2,12 @@ define [
"base"
], (App) ->
App.controller "AutoCompileOnboardingController", ($scope) ->
recompileBtn = angular.element('#recompile')
{ top, left } = recompileBtn.offset()
angular.element('.onboarding__autocompile').offset({
top: top,
left: left + 170
})
$scope.dismiss = () ->
$scope.onboarding.autoCompile = 'dismissed'

View file

@ -103,7 +103,6 @@ a.feat-onboard-dismiss {
.onboarding__autocompile {
display: block;
top: 10px;
left: 694px;
.arrow {
top: 17px !important;