feat(new-toolbars): initial implementation
This commit is contained in:
committed by
Lyubo Marinov
parent
962df14382
commit
d93782af8a
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user