肯定有一个带有外侧页边距的测试用例吧?他自言自语道。
搜索中……嗯。没有 抱歉,没有针对该控件的测试用例!
而且……深入挖掘 git 仓库的历史记录,发现(a)它被合并到了控制装订侧的布尔值中(ifBookOpenLeft),而不是拥有自己的布尔值。不过,BookOpenLeft 还做其他事情,比如定位页面上的标签,所以这是一个错误。(b)几个月后,由于 BookOpenLeft 有了自己的控件,这一点得到了修正。(c)没有人意识到那是外侧页边距传入布局引擎的唯一位置。
因此,目前外侧页边距控件只是在用户界面上切换该复选框的开启或关闭状态,仅此而已……
我会尝试修复这个问题。
Surely we have a test case with an outer gutter? He says to himself.
Searching… Hmm. Nope Sorry, no test case for that control!
And… digging into the history in the git repository, this (a) was stitched into the boolean that controls the binding side (ifBookOpenLeft) rather than being its own boolean. BookOpenLeft does other things, though, like position tabs on the page, so that was a mistake. (b) that was then corrected as BookOpenLeft has its own control, a few months later. (c) no one realised that was the only place that outergutter was getting fed into the layout engine.
So, at the moment the outer gutter control makes that box toggle on or off on the user interface, and that’s about it…
I’ll have a go at fixing that.
机器翻译自 English