Skip to content

Commit

Permalink
Merge pull request #83 from vilhalmer/apply-margin-to-bottom
Browse files Browse the repository at this point in the history
Apply bottom margin to last notification
  • Loading branch information
emersion authored Oct 21, 2018
2 parents c07b91b + 55a14f7 commit 4eb73fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion render.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ int render(struct mako_state *state, struct pool_buffer *buffer, int scale) {
finish_style(&style);

total_height += hidden_height;
pending_bottom_margin = style.margin.bottom;
}

return total_height;
return total_height + pending_bottom_margin;
}

0 comments on commit 4eb73fc

Please # to comment.