Skip to content

Commit d7c7369

Browse files
author
pipeline
committed
bug(EJ2-5486): Fixed tooltip alignment issue
1 parent 9a65f1c commit d7c7369

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
50 Bytes
Binary file not shown.

src/common/index.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,13 @@ function processResize(e: any): void {
634634
* Theme Loading
635635
*/
636636
function loadTheme(theme: string): void {
637+
let body: HTMLElement = document.body;
638+
if (body.classList.length > 0) {
639+
for (let themeItem of themeCollection) {
640+
body.classList.remove(themeItem);
641+
}
642+
}
643+
body.classList.add(theme);
637644
themeList.querySelector('.active').classList.remove('active');
638645
themeList.querySelector('#' + theme).classList.add('active');
639646
let ajax: Ajax = new Ajax('./styles/' + theme + '.css', 'GET', true);

0 commit comments

Comments
 (0)