mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
fix the find widget hide issue (#21937)
This commit is contained in:
@@ -262,6 +262,7 @@ export class FindWidget extends Widget implements IOverlayWidget, IVerticalSashL
|
|||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this._domNode.classList.add('visible');
|
this._domNode.classList.add('visible');
|
||||||
this._domNode.setAttribute('aria-hidden', 'false');
|
this._domNode.setAttribute('aria-hidden', 'false');
|
||||||
|
this._domNode.style.display = '';
|
||||||
if (!animate) {
|
if (!animate) {
|
||||||
this._domNode.classList.add('noanimation');
|
this._domNode.classList.add('noanimation');
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
@@ -281,6 +282,7 @@ export class FindWidget extends Widget implements IOverlayWidget, IVerticalSashL
|
|||||||
|
|
||||||
this._domNode.classList.remove('visible');
|
this._domNode.classList.remove('visible');
|
||||||
this._domNode.setAttribute('aria-hidden', 'true');
|
this._domNode.setAttribute('aria-hidden', 'true');
|
||||||
|
this._domNode.style.display = 'none';
|
||||||
if (focusTheEditor) {
|
if (focusTheEditor) {
|
||||||
this._tableController.focus();
|
this._tableController.focus();
|
||||||
}
|
}
|
||||||
@@ -471,6 +473,7 @@ export class FindWidget extends Widget implements IOverlayWidget, IVerticalSashL
|
|||||||
this._domNode = document.createElement('div');
|
this._domNode = document.createElement('div');
|
||||||
this._domNode.className = 'editor-widget find-widget';
|
this._domNode.className = 'editor-widget find-widget';
|
||||||
this._domNode.setAttribute('aria-hidden', 'true');
|
this._domNode.setAttribute('aria-hidden', 'true');
|
||||||
|
this._domNode.style.display = 'none';
|
||||||
|
|
||||||
this._domNode.appendChild(findPart);
|
this._domNode.appendChild(findPart);
|
||||||
|
|
||||||
|
|||||||
@@ -255,11 +255,9 @@ export class ProfilerTableEditor extends EditorPane implements IProfilerControll
|
|||||||
if (e.isRevealed) {
|
if (e.isRevealed) {
|
||||||
if (this._findState.isRevealed) {
|
if (this._findState.isRevealed) {
|
||||||
node.style.top = '0px';
|
node.style.top = '0px';
|
||||||
node.style.display = '';
|
|
||||||
this._updateFinderMatchState();
|
this._updateFinderMatchState();
|
||||||
} else {
|
} else {
|
||||||
node.style.top = '';
|
node.style.top = '';
|
||||||
node.style.display = 'none';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user