From 3bdbe7e538b395927bc73768187d0977d6bd204f Mon Sep 17 00:00:00 2001 From: Paulo Reis Date: Fri, 24 Feb 2017 14:36:08 +0000 Subject: [PATCH 1/2] Set synctex controls z-index to the minimum working value. --- services/web/public/coffee/ide/directives/layout.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/public/coffee/ide/directives/layout.coffee b/services/web/public/coffee/ide/directives/layout.coffee index f20a37b342..7506c410f2 100644 --- a/services/web/public/coffee/ide/directives/layout.coffee +++ b/services/web/public/coffee/ide/directives/layout.coffee @@ -55,7 +55,7 @@ define [ controls.css({ position: "absolute" right: state.east.size - "z-index": 10 + "z-index": 3 }) resetOpenStates = () -> From 1646496f1912bf01b44097883a7c8c68017252f7 Mon Sep 17 00:00:00 2001 From: Paulo Reis Date: Fri, 24 Feb 2017 14:38:46 +0000 Subject: [PATCH 2/2] Patch overflow behaviour so that z-index is always higher by 1. --- services/web/public/coffee/ide/directives/layout.coffee | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/services/web/public/coffee/ide/directives/layout.coffee b/services/web/public/coffee/ide/directives/layout.coffee index 7506c410f2..21d9230b52 100644 --- a/services/web/public/coffee/ide/directives/layout.coffee +++ b/services/web/public/coffee/ide/directives/layout.coffee @@ -106,7 +106,14 @@ define [ , 0 if attrs.allowOverflowOn? - element.layout().allowOverflow(scope.$eval(attrs.allowOverflowOn)) + layoutObj = element.layout() + overflowPane = scope.$eval(attrs.allowOverflowOn) + overflowPaneEl = layoutObj.panes[overflowPane] + # Set the panel as overflowing (gives it higher z-index and sets overflow rules) + layoutObj.allowOverflow overflowPane + # Read the given z-index value and increment it, so that it's higher than synctex controls. + overflowPaneZVal = overflowPaneEl.css "z-index" + overflowPaneEl.css "z-index", overflowPaneZVal + 1 resetOpenStates() onInternalResize()