Skip to content

Commit

Permalink
Fix the size of items in the dock (issues #238 and #231).
Browse files Browse the repository at this point in the history
  • Loading branch information
joewing committed Oct 28, 2015
1 parent c01420e commit e3f3ce2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/dock.c
Expand Up @@ -189,8 +189,13 @@ void SetSize(TrayComponentType *cp, int width, int height)
cp->width = width;
cp->height = height;
GetDockSize(&cp->width, &cp->height);
cp->requestedWidth = cp->width;
cp->requestedHeight = cp->height;
if(width == 0) {
cp->requestedWidth = cp->width;
cp->requestedHeight = 0;
} else {
cp->requestedWidth = 0;
cp->requestedHeight = cp->height;
}

}

Expand Down

0 comments on commit e3f3ce2

Please sign in to comment.