mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 17:52:42 +00:00
probably should adjust width/height before centering frame
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@35709 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2887e68d43
commit
ea9cd504ba
1 changed files with 3 additions and 3 deletions
|
@ -4745,9 +4745,6 @@ current key view.<br />
|
|||
// section may need to be updated as we test further...
|
||||
if ((fabs(fRect.origin.x) > 32000.00) || (fabs(fRect.origin.y) > 32000.00))
|
||||
{
|
||||
// Center in screen...
|
||||
fRect = [self _centerFrame: fRect onScreen: [NSScreen mainScreen]];
|
||||
|
||||
// This additional check potentially needed if application restarted multiple
|
||||
// times after the above sequence causing corrupted width/height values...
|
||||
// We'll try using the minimum size set but this may not be valid...
|
||||
|
@ -4760,6 +4757,9 @@ current key view.<br />
|
|||
fRect.size.width = minSize.width;
|
||||
if (fRect.size.height < minSize.height)
|
||||
fRect.size.height = minSize.height;
|
||||
|
||||
// Center in screen...
|
||||
fRect = [self _centerFrame: fRect onScreen: [NSScreen mainScreen]];
|
||||
|
||||
// Also - screen rectangle could be corrupted and completely meaningless...
|
||||
sRect = [[NSScreen mainScreen] visibleFrame];
|
||||
|
|
Loading…
Reference in a new issue