diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-07-28 17:58:06 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-07-28 17:58:06 +0000 |
| commit | d06cedce062da73393a585d061b19b6604bbe568 (patch) | |
| tree | 9964a6912f098ef5a10a7e8ef2e56e8bcfa22174 /src/Basemenu.cc | |
| parent | 86af1224bd80ed987f9c2389efa9bf9744ebada8 (diff) | |
keep a minimum menu height so that the pixmaps (checkmarks) draw right in them
Diffstat (limited to 'src/Basemenu.cc')
| -rw-r--r-- | src/Basemenu.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |
