diff --git a/graphics/nxtk/nxtk_setsize.c b/graphics/nxtk/nxtk_setsize.c index e2917fc34a0..f91aa7e0e51 100644 --- a/graphics/nxtk/nxtk_setsize.c +++ b/graphics/nxtk/nxtk_setsize.c @@ -107,7 +107,7 @@ int nxtk_setsize(NXTKWINDOW hfwnd, FAR struct nxgl_size_s *size) /* Add the sizes need for the toolbar and the borders */ newsize.w = size->w + 2 * CONFIG_NXTK_BORDERWIDTH; - newsize.h = size->w + fwnd->tbheight + 2 * CONFIG_NXTK_BORDERWIDTH; + newsize.h = size->h + fwnd->tbheight + 2 * CONFIG_NXTK_BORDERWIDTH; /* Then set the window size */