Adopted fix from franckspike for bug from issue #35

When inverting axis, #left-right must move the vertical separator
correctly
This commit is contained in:
joten 2015-03-10 22:10:07 +01:00
parent 85f2dfb6ce
commit 402ba02876
2 changed files with 3 additions and 0 deletions

View file

@ -28,6 +28,7 @@ summarizes these sources (of ideas or code):
* [franckspike](https://github.com/franckspike): * [franckspike](https://github.com/franckspike):
+ [More general loop function](https://github.com/franckspike/bug.n/commit/e4e615512b363e8c342bf02cf9067cfeb4cc5d57#diff-e42236c27dedd9350fa8c9b9654fd485) + [More general loop function](https://github.com/franckspike/bug.n/commit/e4e615512b363e8c342bf02cf9067cfeb4cc5d57#diff-e42236c27dedd9350fa8c9b9654fd485)
+ [Remote control](https://github.com/franckspike/bug.n/commit/2beacc71aef4d4c46021f97b52ab857efabc871c) + [Remote control](https://github.com/franckspike/bug.n/commit/2beacc71aef4d4c46021f97b52ab857efabc871c)
+ [Resize the master area correctly, if the first layout axis is inverted.](https://github.com/franckspike/bug.n/commit/8e6f809d33326408fc1c7e249f5b278708b91565)
* fures: System + Network monitor - with net history graph (AutoHotkey forum) * fures: System + Network monitor - with net history graph (AutoHotkey forum)
* maestrith: Script Writer (github.com/maestrith/Script_Writer) * maestrith: Script Writer (github.com/maestrith/Script_Writer)
* PhiLho: [AC/Battery status](http://www.autohotkey.com/forum/topic7633.html) * PhiLho: [AC/Battery status](http://www.autohotkey.com/forum/topic7633.html)

View file

@ -223,6 +223,8 @@ Tiler_setMFactor(m, v, i, d, dFact) {
mFact := i mFact := i
Else Else
mFact := View_#%m%_#%v%_layoutMFact mFact := View_#%m%_#%v%_layoutMFact
If (View_#%m%_#%v%_layoutAxis_#1 < 0)
d *= -1
mFact += Tiler_getMFactorD(m, v, d, dFact) mFact += Tiler_getMFactorD(m, v, d, dFact)
If (mFact > 0 And mFact < 1) { If (mFact > 0 And mFact < 1) {
View_#%m%_#%v%_layoutMFact := mFact View_#%m%_#%v%_layoutMFact := mFact