-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix issue add scroll bar at bottom of the diagnostic log container
- Loading branch information
Showing
4 changed files
with
42 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
.diagnosticsRunner_content_container{ | ||
.diagnostics_log_container{ | ||
position:relative; | ||
min-height: 500px; | ||
max-height: 1080px; | ||
padding: 20px; | ||
overflow-y: scroll !important; | ||
overflow: scroll !important; | ||
scroll-behavior: smooth; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* @Description This function take current element's id as param then read parent element height and assign to current element | ||
* @param DOMid DOM element ID | ||
* @return VOID | ||
*/ | ||
export function resizePanelHeightAsParent(DOMid:string){ | ||
const element = document.getElementById(DOMid); | ||
if(element){ | ||
const parentNodeHeight = element.parentElement?.clientHeight; | ||
if(parentNodeHeight){ | ||
element.style.height = parentNodeHeight + 'px'; | ||
console.log(parentNodeHeight) | ||
}else{ | ||
console.log(`Try to resize element as parent height, but parent node high not found!`) | ||
} | ||
}else{ | ||
console.log(`Try to resize element as parent height, but parent node element not found!`) | ||
} | ||
} |