Fix properties container and overflow actionbar styles (#10180)

* Fix styles

* Undo bold
This commit is contained in:
Charles Gagnon
2020-04-28 16:27:07 -07:00
committed by GitHub
parent 98f3f57f77
commit 750f6e6559
9 changed files with 101 additions and 77 deletions

View File

@@ -25,6 +25,10 @@ export interface ITaskbarContent {
element?: HTMLElement;
}
export interface ITaskbarOptions extends IToolBarOptions {
collapseOverflow?: boolean
}
/**
* A widget that combines an action bar for actions. This class was needed because we
* want the ability to use the custom QueryActionBar in order to display other HTML
@@ -34,14 +38,14 @@ export class Taskbar {
private options: IToolBarOptions;
private actionBar: ActionBar;
constructor(container: HTMLElement, options: IToolBarOptions = { orientation: ActionsOrientation.HORIZONTAL }, collapseOverflow: boolean = false) {
constructor(container: HTMLElement, options: ITaskbarOptions = { orientation: ActionsOrientation.HORIZONTAL }) {
this.options = options;
let element = document.createElement('div');
element.className = 'monaco-toolbar carbon-taskbar';
container.appendChild(element);
if (collapseOverflow) {
if (options.collapseOverflow) {
this.actionBar = new OverflowActionBar(
element,
{