mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Remove unneeded existence checks.
This commit is contained in:
@@ -27,8 +27,8 @@ define [
|
||||
|
||||
recalculateProjectListHeight = () ->
|
||||
$projListCard = $(".project-list-card")
|
||||
topOffset = $projListCard?.offset()?.top
|
||||
cardPadding = $projListCard?.outerHeight() - $projListCard?.height()
|
||||
topOffset = $projListCard.offset()?.top
|
||||
cardPadding = $projListCard.outerHeight() - $projListCard.height()
|
||||
bottomOffset = $("footer").outerHeight()
|
||||
height = $window.innerHeight - topOffset - bottomOffset - cardPadding
|
||||
$scope.projectListHeight = height
|
||||
|
||||
Reference in New Issue
Block a user