[library] Add support for getExtraLayoutSpace() in TWLayoutManager