mirror of
https://github.com/labwc/labwc.git
synced 2026-05-02 06:47:03 -04:00
labnag: remove +1 offset from button Y-position calculation
It essentially removes an awkward top margin from the button on the main labnag bar.
This commit is contained in:
parent
e61d58e54d
commit
de3870246a
1 changed files with 1 additions and 1 deletions
|
|
@ -447,7 +447,7 @@ render_button(cairo_t *cairo, struct nag *nag, struct button *button,
|
|||
}
|
||||
|
||||
button->x = *x - border - text_width - padding * 2 + 1;
|
||||
button->y = (int)(ideal_height - text_height) / 2 - padding + 1;
|
||||
button->y = (int)(ideal_height - text_height) / 2 - padding;
|
||||
button->width = text_width + padding * 2;
|
||||
button->height = text_height + padding * 2;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue