mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Fixed the issue with adding and removing flex container (#13480)
This commit is contained in:
@@ -229,6 +229,7 @@ export class DashboardWidget {
|
|||||||
iconHeight: '10px',
|
iconHeight: '10px',
|
||||||
iconWidth: '10px'
|
iconWidth: '10px'
|
||||||
}).component();
|
}).component();
|
||||||
|
|
||||||
showMoreComponent.onDidClick(() => {
|
showMoreComponent.onDidClick(() => {
|
||||||
let showMore = showMoreComponent.label === constants.showMoreTitle;
|
let showMore = showMoreComponent.label === constants.showMoreTitle;
|
||||||
if (showMore) {
|
if (showMore) {
|
||||||
@@ -237,12 +238,10 @@ export class DashboardWidget {
|
|||||||
dark: this.asAbsolutePath('images/dark/showLess_inverse.svg'),
|
dark: this.asAbsolutePath('images/dark/showLess_inverse.svg'),
|
||||||
light: this.asAbsolutePath('images/light/showLess.svg'),
|
light: this.asAbsolutePath('images/light/showLess.svg'),
|
||||||
};
|
};
|
||||||
parentPanel.addItem(morePanel, {
|
morePanel.updateCssStyles(Object.assign({}, morePanelStyle, { 'visibility': 'visible' }));
|
||||||
CSSStyles: morePanelStyle
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
showMoreComponent.label = constants.showMoreTitle;
|
showMoreComponent.label = constants.showMoreTitle;
|
||||||
parentPanel.removeItem(morePanel);
|
morePanel.updateCssStyles(Object.assign({}, morePanelStyle, { 'visibility': 'hidden' }));
|
||||||
image.iconPath = {
|
image.iconPath = {
|
||||||
dark: this.asAbsolutePath('images/dark/showMore_inverse.svg'),
|
dark: this.asAbsolutePath('images/dark/showMore_inverse.svg'),
|
||||||
light: this.asAbsolutePath('images/light/showMore.svg'),
|
light: this.asAbsolutePath('images/light/showMore.svg'),
|
||||||
@@ -267,6 +266,9 @@ export class DashboardWidget {
|
|||||||
parentPanel.addItem(linkContainer, {
|
parentPanel.addItem(linkContainer, {
|
||||||
CSSStyles: {}
|
CSSStyles: {}
|
||||||
});
|
});
|
||||||
|
parentPanel.addItem(morePanel, {
|
||||||
|
CSSStyles: (Object.assign({}, morePanelStyle, { 'visibility': 'hidden' }))
|
||||||
|
});
|
||||||
|
|
||||||
return showMoreComponent;
|
return showMoreComponent;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user