mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-28 19:11:04 +00:00
Patch overflow behaviour so that z-index is always higher by 1.
This commit is contained in:
parent
3bdbe7e538
commit
1646496f19
1 changed files with 8 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue