From e3f3ce26a5a61772e353630c2a83092a56ca64bd Mon Sep 17 00:00:00 2001 From: Joe Wingbermuehle Date: Tue, 27 Oct 2015 19:51:33 -0500 Subject: [PATCH] Fix the size of items in the dock (issues #238 and #231). --- src/dock.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/dock.c b/src/dock.c index dafa62e2..2484329d 100644 --- a/src/dock.c +++ b/src/dock.c @@ -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; + } }