Skip to content
Snippets Groups Projects
Commit ee553679 authored by patacongo's avatar patacongo
Browse files

Positioning depends on width of border

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1403 42af7a65-404d-4744-a932-0658087f49c3
parent 63dfdf17
No related branches found
No related tags found
No related merge requests found
......@@ -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? */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment