             }
 
         initializeNewValue()
+
+        goToBottomList = (focus = false) =>
+            table = $el.find(".table-main")
+
+            console.log(table.offset().top + table.height())
+
+            $(document.body).scrollTop(table.offset().top + table.height())
+
+            if focus
+                $(".new-value input").focus()
+
         submit = =>
             promise = $repo.save($scope.project)
             promise.then ->

            event.preventDefault()
            $el.find(".new-value").css('display': 'flex')

        $el.on "click", ".add-new", (event) ->
            event.preventDefault()
            form = $el.find(".new-value").parents("form").checksley()


    return {link:link}

module.directive("tgProjectValues", ["$log", "$tgRepo", "$tgConfirm", "$tgLocation", "animationFrame", ProjectValuesDirective])


#############################################################################
