Skip to content

Commit

Permalink
menu margin also includes gradient background.
Browse files Browse the repository at this point in the history
  • Loading branch information
gijsbers committed Dec 27, 2017
1 parent d570343 commit 3fb1aab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ymenu.cc
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ void YMenu::sizePopup(int hspace) {

namePos = l + left + padx + maxIcon + 2;
paramPos = namePos + 2 + maxName + 6;
width = paramPos + maxParam + 4 + r;
width = paramPos + maxParam + 4 + r + 10;
height += b;

if (menubackPixbuf != null
Expand All @@ -857,7 +857,7 @@ void YMenu::sizePopup(int hspace) {
fGradient = menubackPixbuf->scale(width, height);
}

setSize(width + 10, height);
setSize(width, height);
}

void YMenu::repaintItem(int item) {
Expand Down

0 comments on commit 3fb1aab

Please sign in to comment.