Use width of button instead of hardcoded

This commit is contained in:
Alasdair Smith 2017-09-28 11:03:54 +01:00
parent 7e407621e9
commit fcc2db9ea7
2 changed files with 1 additions and 2 deletions

View file

@ -95,7 +95,6 @@ div.full-size(
)
include ./pdf
.popover.right.onboarding__autocompile(
ng-controller="AutoCompileOnboardingController"
ng-if="onboarding.autoCompile == 'show'"

View file

@ -6,7 +6,7 @@ define [
{ top, left } = recompileBtn.offset()
angular.element('.onboarding__autocompile').offset({
top: top,
left: left + 170
left: left + recompileBtn.width() + 11 # Width of arrow
})
$scope.dismiss = () ->