mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-09 07:05:59 +00:00
Remove unneeded existence checks.
This commit is contained in:
parent
c105048e8d
commit
632e3228e0
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue