mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-24 18:31:20 +00:00
Set up the rulers in -tile
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11930 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c1fdbfbd3e
commit
dfeae9978f
1 changed files with 22 additions and 1 deletions
|
@ -732,7 +732,28 @@ static float scrollerWidth;
|
|||
[cornerView setFrameOrigin: headerRect.origin];
|
||||
}
|
||||
|
||||
// FIXME: The Rulers should be positioned too
|
||||
/* Now place the rulers. */
|
||||
if (_rulersVisible)
|
||||
{
|
||||
if (_hasHorizRuler)
|
||||
{
|
||||
NSRect horizRulerRect;
|
||||
|
||||
NSDivideRect (contentRect, &horizRulerRect, &contentRect,
|
||||
[_horizRuler requiredThickness], topEdge);
|
||||
[_horizRuler setFrame: horizRulerRect];
|
||||
}
|
||||
|
||||
if (_hasVertRuler)
|
||||
{
|
||||
NSRect vertRulerRect;
|
||||
|
||||
NSDivideRect (contentRect, &vertRulerRect, &contentRect,
|
||||
[_vertRuler requiredThickness], NSMinXEdge);
|
||||
[_vertRuler setFrame: vertRulerRect];
|
||||
}
|
||||
}
|
||||
|
||||
[_contentView setFrame: contentRect];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue