From 01036291bc550272de3048ffceaf0c302f237a32 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sat, 1 Aug 2020 15:27:45 +0200 Subject: [PATCH] Increased context menu z-index and fixed a ts generator bug --- ChangeLog.md | 1 + shared/css/static/context_menu.scss | 2 +- tools/trgen/ts_generator.ts | 4 +++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog.md b/ChangeLog.md index ad8d8714..c086642b 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,6 +1,7 @@ # Changelog: * **01.08.20** - Cleaning up the channel trees selection on reset + - Updated the translations to the newest standard * **25.07.20** - Fixed bug where icons could not be loaded due to cros policy diff --git a/shared/css/static/context_menu.scss b/shared/css/static/context_menu.scss index 7101d343..bc9dbc7f 100644 --- a/shared/css/static/context_menu.scss +++ b/shared/css/static/context_menu.scss @@ -1,7 +1,7 @@ .context-menu { overflow: visible; display: none; - z-index: 2000; + z-index: 120000; position: absolute; .context-menu-container { diff --git a/tools/trgen/ts_generator.ts b/tools/trgen/ts_generator.ts index 3faf06bb..9291222b 100644 --- a/tools/trgen/ts_generator.ts +++ b/tools/trgen/ts_generator.ts @@ -296,11 +296,13 @@ export function replace_processor(config: Configuration, cache: VolatileTransfor if(config.verbose) console.log("Process %s", SyntaxKind[node.kind]); + if(!node.getSourceFile()) + return node; + if(ts.isCallExpression(node)) { const call = node; const call_name = call.expression["escapedText"] as string; if(call_name != "tr") return node; - if(!node.getSourceFile()) return node; if(config.verbose) { console.dir(call_name); console.log("Parameters: %o", call.arguments.length);