Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
"getFillerOffset()" util from ContainerElement is exported in order t…
Browse files Browse the repository at this point in the history
…o use in other place of the code.
  • Loading branch information
Kamil Piechaczek committed Nov 13, 2018
1 parent 412dc45 commit 7f8408e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/view/containerelement.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ export default class ContainerElement extends Element {
}
}

// Returns block {@link module:engine/view/filler filler} offset or `null` if block filler is not needed.
//
// @returns {Number|null} Block filler offset or `null` if block filler is not needed.
function getFillerOffset() {
/**
* Returns block {@link module:engine/view/filler filler} offset or `null` if block filler is not needed.
*
* @returns {Number|null} Block filler offset or `null` if block filler is not needed.
*/
export function getFillerOffset() {
const children = [ ...this.getChildren() ];
const lastChild = children[ this.childCount - 1 ];

Expand Down

0 comments on commit 7f8408e

Please sign in to comment.