Positioning depends on width of border

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1403 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2008-12-03 00:33:59 +00:00
parent 63dfdf17b9
commit ee55367915
+6 -1
View File
@@ -113,8 +113,13 @@ void nxtk_setsubwindows(FAR struct nxtk_framedwindow_s *fwnd)
/* Position the toolbar and client window just under the top border */
tbtop += (bdrheight / 2);
#if CONFIG_NXTK_BORDERWIDTH > 1
tbtop += CONFIG_NXTK_BORDERWIDTH - 1;
fwtop = tbtop + 1;
#else
tbtop += CONFIG_NXTK_BORDERWIDTH;
fwtop = tbtop;
#endif
/* Is it big enough for any part of the toolbar? */