Merge pull request #3969 from ghost/patch-1

clean up math calculating width of last tab
This commit is contained in:
Ingo Bürk 2020-05-01 09:47:25 +02:00 committed by GitHub
commit d7d4f0a95b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -426,7 +426,7 @@ static void render_con_tabbed(Con *con, Con *child, render_params *p, int i) {
/* Since the tab width may be something like 31,6 px per tab, we
* let the last tab have all the extra space (0,6 * children). */
if (i == (p->children - 1)) {
child->deco_rect.width += (child->rect.width - (child->deco_rect.x + child->deco_rect.width));
child->deco_rect.width = child->rect.width - child->deco_rect.x;
}
if (p->children > 1 || (child->border_style != BS_PIXEL && child->border_style != BS_NONE)) {