From: Dana Jansens Date: Sun, 28 Jul 2002 17:58:06 +0000 (+0000) Subject: keep a minimum menu height so that the pixmaps (checkmarks) draw right in them X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=d06cedce062da73393a585d061b19b6604bbe568;p=chaz%2Fopenbox keep a minimum menu height so that the pixmaps (checkmarks) draw right in them --- diff --git a/src/Basemenu.cc b/src/Basemenu.cc index ac605cb7..997aaea1 100644 --- a/src/Basemenu.cc +++ b/src/Basemenu.cc @@ -250,7 +250,8 @@ int Basemenu::remove(int index) { void Basemenu::update(void) { MenuStyle *style = screen->getMenuStyle(); - menu.item_h = style->f_font->height() + menu.bevel_w; + menu.item_h = (style->f_font->height() < 9 ? 9 : style->f_font->height()) + + menu.bevel_w; // 9 for the menu pixmaps (checkmarks) menu.title_h = style->t_font->height() + menu.bevel_w * 2; if (title_vis) {