mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 21:50:46 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35183 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
821bf0c0cb
commit
800eb565ae
2 changed files with 17 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2012-06-07 German A. Arias <german@xelalug.org>
|
||||||
|
|
||||||
|
* Source/GSWindowDecorationView.m (-changeWindowHeight:): Use an
|
||||||
|
intermediate frame before call -layout. This fix bugs #36419 and
|
||||||
|
#36586.
|
||||||
|
|
||||||
2012-06-05 Wolfgang Lux <wolfgang.lux@gmail.com>
|
2012-06-05 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||||
|
|
||||||
* Tests/gui/TextSystem/deallocation.m: Add new test to verify
|
* Tests/gui/TextSystem/deallocation.m: Add new test to verify
|
||||||
|
|
|
@ -372,10 +372,20 @@ static inline NSRect RectWithSizeScaledByFactor(NSRect aRect, CGFloat factor)
|
||||||
orgWindowFrame = [window frame];
|
orgWindowFrame = [window frame];
|
||||||
windowFrame.origin.y = orgWindowFrame.origin.y + orgWindowFrame.size.height - windowFrame.size.height;
|
windowFrame.origin.y = orgWindowFrame.origin.y + orgWindowFrame.size.height - windowFrame.size.height;
|
||||||
windowFrame.origin.x = orgWindowFrame.origin.x;
|
windowFrame.origin.x = orgWindowFrame.origin.x;
|
||||||
|
/* FIXME: Make an intermediate frame to set in the window before call -layout.
|
||||||
|
* Later we will set a frame with the correct dimensions. This intermediate
|
||||||
|
* frame only differs on the width (subtract 1). This ensure the correct
|
||||||
|
* behaviour of the in-window menu. Even when I'm not sure why.
|
||||||
|
*/
|
||||||
|
windowFrame.size.width -= 1;
|
||||||
|
|
||||||
// then resize the window
|
// then resize the window with the intermediate frame and call -layout
|
||||||
[window setFrame: windowFrame display: YES];
|
[window setFrame: windowFrame display: YES];
|
||||||
[self layout];
|
[self layout];
|
||||||
|
|
||||||
|
// Now resize the window to correct width
|
||||||
|
windowFrame.size.width += 1;
|
||||||
|
[window setFrame: windowFrame display: YES];
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue