mirror of
https://github.com/atom/atom.git
synced 2026-02-15 09:05:58 -05:00
Modified increaseSize and decreaseSize methods from pane.js to pass 'one pane resizing' tests
This commit is contained in:
12
src/pane.js
12
src/pane.js
@@ -155,9 +155,17 @@ class Pane {
|
||||
|
||||
getFlexScale () { return this.flexScale }
|
||||
|
||||
increaseSize () { this.setFlexScale(this.getFlexScale() * 1.1) }
|
||||
increaseSize () {
|
||||
if (this.getContainer().getPanes().length > 1){
|
||||
this.setFlexScale(this.getFlexScale() * 1.1)
|
||||
}
|
||||
}
|
||||
|
||||
decreaseSize () { this.setFlexScale(this.getFlexScale() / 1.1) }
|
||||
decreaseSize () {
|
||||
if (this.getContainer().getPanes().length > 1){
|
||||
this.setFlexScale(this.getFlexScale() / 1.1)
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Section: Event Subscription
|
||||
|
||||
Reference in New Issue
Block a user