-
Notifications
You must be signed in to change notification settings - Fork 24
Status bar does not stick to the bottom of the browser window. #67
Comments
Looks like it is caused by |
I am working on a fix. All that has to be figured out is the exact height of the statusbar (or cave in and set a The following (really bad) CSS has been added to the bottom of div#com-fortnight-status-bar {
/* We are setting padding and height, make sure box-sizing is right. */
box-sizing: content-box !important;
/* font-size: 8pt = 10.666666px really, but Safari’s computed value is 11px. */
font-size: 11px !important;
/* No variable sizing, everything pixels. (Probably, maybe, not necessary?) */
padding: 2.2px 12px 2.75px !important;
/* Helvetica Neue size 11px seems to get a 1.1818181818181819 line-height?!?!?!
http://meyerweb.com/eric/css/tests/line-height/inspect-multi.html */
line-height: 13px !important;
height: 13px !important;
/* Now we can calculate at how many pixels from the viewport top to display. */
top: calc(100vh - 2.2px - 2.75px - 13px) !important;
} This seems to be slightly off compared to the current height of the statusbar, and I would love to get it closer to what we currently have before shipping. Should probably start a branch for this. |
I was playing with something similar. Could also try using ems in the calculation too. |
Oh definitely. I just have an easier time visualising with I’ll push a new branch if I figure it out today. |
I have been going with the viewport height + |
Not sure why:
The text was updated successfully, but these errors were encountered: