include padding in the menu header min width

This commit is contained in:
Dana Jansens 2007-06-12 16:38:42 +00:00
parent 124303ab72
commit d57ea6ece7

View file

@ -731,7 +731,7 @@ void menu_frame_render(ObMenuFrame *self)
if (e->entry->data.separator.label != NULL) {
e->a_text_title->texture[0].data.text.string =
e->entry->data.separator.label;
tw = RrMinWidth(e->a_text_title);
tw = RrMinWidth(e->a_text_title) + 2*ob_rr_theme->paddingx;
tw = MIN(tw, MAX_MENU_WIDTH);
th = ob_rr_theme->menu_title_height +
(ob_rr_theme->mbwidth - PADDING) *2;