]> Dogcows Code - chaz/openbox/commitdiff
keep a minimum menu height so that the pixmaps (checkmarks) draw right in them
authorDana Jansens <danakj@orodu.net>
Sun, 28 Jul 2002 17:58:06 +0000 (17:58 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 28 Jul 2002 17:58:06 +0000 (17:58 +0000)
src/Basemenu.cc

index ac605cb7ed6bea922003b120f66753cca40186c4..997aaea19c620d45f540f1fd0ea9a373ada0a7bc 100644 (file)
@@ -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) {
This page took 0.023251 seconds and 4 git commands to generate.