     @lineHeight * @model.getScreenLineCount()
 
   getBlockDecorationsHeight: ->
-    sizes = Array.from(@blockDecorationsDimensions.values())
+    sizes = Array.from(@blockDecorationsDimensionsById.values())
     sum = (a, b) -> a + b
     height = sizes.map((size) -> size.height).reduce(sum, 0)
     height

    for decoration in @model.getDecorations(type: "block")
      blockDecorations[decoration.id] = decoration

    @blockDecorationsDimensions.forEach (value, key) =>
      unless blockDecorations.hasOwnProperty(key)
        @blockDecorationsDimensions.delete(key)

    @shouldUpdateVerticalScrollState = true


    @lineDecorationsByScreenRow = {}
    @lineNumberDecorationsByScreenRow = {}
    @customGutterDecorationsByGutterName = {}
    @blockDecorationsDimensionsById = new Map
    @screenRowsToMeasure = []
    @transferMeasurementsToModel()
    @transferMeasurementsFromModel()
