mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 21:27:40 +00:00
* Source/GSStandardWindowDecorationView.m: Use bounds rect instead
of frame rect when laying out the window parts (title bar, etc). git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32886 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e1e89d3818
commit
0fccc78bad
2 changed files with 11 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
|||
2011-04-18 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/GSStandardWindowDecorationView.m: Use bounds rect instead
|
||||
of frame rect when laying out the window parts (title bar, etc).
|
||||
|
||||
2011-04-18 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/GSXibLoader.m: Rewrote the handling of the data
|
||||
|
|
|
@ -99,24 +99,24 @@
|
|||
{
|
||||
float titleHeight = [theme titlebarHeight];
|
||||
|
||||
titleBarRect = NSMakeRect(0.0, _frame.size.height - titleHeight,
|
||||
_frame.size.width, titleHeight);
|
||||
titleBarRect = NSMakeRect(0.0, [self bounds].size.height - titleHeight,
|
||||
[self bounds].size.width, titleHeight);
|
||||
}
|
||||
if (hasResizeBar)
|
||||
{
|
||||
resizeBarRect = NSMakeRect(0.0, 0.0, _frame.size.width, [theme resizebarHeight]);
|
||||
resizeBarRect = NSMakeRect(0.0, 0.0, [self bounds].size.width, [theme resizebarHeight]);
|
||||
}
|
||||
if (hasCloseButton)
|
||||
{
|
||||
closeButtonRect = NSMakeRect(
|
||||
_frame.size.width - 15 - 4, _frame.size.height - 15 - 4, 15, 15);
|
||||
[self bounds].size.width - 15 - 4, [self bounds].size.height - 15 - 4, 15, 15);
|
||||
[closeButton setFrame: closeButtonRect];
|
||||
}
|
||||
|
||||
if (hasMiniaturizeButton)
|
||||
{
|
||||
miniaturizeButtonRect = NSMakeRect(
|
||||
4, _frame.size.height - 15 - 4, 15, 15);
|
||||
4, [self bounds].size.height - 15 - 4, 15, 15);
|
||||
[miniaturizeButton setFrame: miniaturizeButtonRect];
|
||||
}
|
||||
}
|
||||
|
@ -180,7 +180,7 @@
|
|||
- (void) drawRect: (NSRect)rect
|
||||
{
|
||||
[[GSTheme theme] drawWindowBorder: rect
|
||||
withFrame: _frame
|
||||
withFrame: [self bounds]
|
||||
forStyleMask: [window styleMask]
|
||||
state: inputState
|
||||
andTitle: [window title]];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue