mirror of
https://github.com/atom/atom.git
synced 2026-01-27 15:58:00 -05:00
🎨 Nobody's getting paid by lines of code
xref: https://github.com/atom/atom/pull/14640#pullrequestreview-41023656
This commit is contained in:
@@ -283,9 +283,8 @@ class WorkspaceElement extends HTMLElement {
|
||||
const visiblePanes = _.flatten(visiblePaneContainers.map(container => container.getPanes()))
|
||||
|
||||
const paneViews = visiblePanes
|
||||
.map(otherPane => {
|
||||
return otherPane.getElement()
|
||||
}).filter(otherPaneView => {
|
||||
.map(otherPane => otherPane.getElement())
|
||||
.filter(otherPaneView => {
|
||||
const otherBox = this.boundingBoxForPaneView(otherPaneView)
|
||||
switch (direction) {
|
||||
case 'left': return otherBox.right.x <= box.left.x
|
||||
|
||||
Reference in New Issue
Block a user