From 402ba02876febbb1f4f5eaab471a76e20a0238ff Mon Sep 17 00:00:00 2001 From: joten Date: Tue, 10 Mar 2015 22:10:07 +0100 Subject: [PATCH] Adopted fix from franckspike for bug from issue #35 When inverting axis, #left-right must move the vertical separator correctly --- doc/CREDITS.md | 1 + src/Tiler.ahk | 2 ++ 2 files changed, 3 insertions(+) diff --git a/doc/CREDITS.md b/doc/CREDITS.md index fe3ba2a..b47abdc 100644 --- a/doc/CREDITS.md +++ b/doc/CREDITS.md @@ -28,6 +28,7 @@ summarizes these sources (of ideas or code): * [franckspike](https://github.com/franckspike): + [More general loop function](https://github.com/franckspike/bug.n/commit/e4e615512b363e8c342bf02cf9067cfeb4cc5d57#diff-e42236c27dedd9350fa8c9b9654fd485) + [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) * maestrith: Script Writer (github.com/maestrith/Script_Writer) * PhiLho: [AC/Battery status](http://www.autohotkey.com/forum/topic7633.html) diff --git a/src/Tiler.ahk b/src/Tiler.ahk index 78e79ff..573abe4 100644 --- a/src/Tiler.ahk +++ b/src/Tiler.ahk @@ -223,6 +223,8 @@ Tiler_setMFactor(m, v, i, d, dFact) { mFact := i Else mFact := View_#%m%_#%v%_layoutMFact + If (View_#%m%_#%v%_layoutAxis_#1 < 0) + d *= -1 mFact += Tiler_getMFactorD(m, v, d, dFact) If (mFact > 0 And mFact < 1) { View_#%m%_#%v%_layoutMFact := mFact