Просмотр исходного кода

Use width of button instead of hardcoded

Alasdair Smith 9 лет назад
Родитель
Сommit
fcc2db9ea7

+ 0 - 1
services/web/app/views/project/editor/editor.pug

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

+ 1 - 1
services/web/public/coffee/ide/AutoCompileOnboardingController.coffee

@@ -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 = () ->