mirror of
https://github.com/apache/nuttx.git
synced 2026-09-21 13:25:12 +08:00
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:
@@ -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? */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user