mirror of
https://github.com/apache/nuttx.git
synced 2026-10-06 22:05:21 +00: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:
parent
63dfdf17b9
commit
ee55367915
1 changed files with 6 additions and 1 deletions
|
|
@ -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? */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue