feat(new-toolbars): initial implementation

This commit is contained in:
Leonard Kim
2018-03-06 16:28:19 -08:00
committed by Lyubo Marinov
parent 962df14382
commit d93782af8a
108 changed files with 5227 additions and 1164 deletions

View File

@@ -99,6 +99,17 @@ export function getToolbarClassNames(props: Object) {
};
}
/**
* Helper for getting the height of the toolbox.
*
* @returns {number} The height of the toolbox.
*/
export function getToolboxHeight() {
const toolbox = document.getElementById('new-toolbox');
return (toolbox && toolbox.clientHeight) || 0;
}
/**
* Indicates if a toolbar button is enabled.
*