mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 16:00:37 +00:00
Text field updates.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4014 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
01a589ed94
commit
6935a9df0a
6 changed files with 437 additions and 73 deletions
|
@ -532,8 +532,9 @@
|
|||
- (void) center
|
||||
{
|
||||
NSSize screenSize = [[NSScreen mainScreen] frame].size;
|
||||
NSPoint origin = frame.origin; // center the window
|
||||
// within it's screen
|
||||
NSPoint origin = frame.origin;
|
||||
|
||||
// center the window within it's screen
|
||||
origin.x = (screenSize.width - frame.size.width) / 2;
|
||||
origin.y = (screenSize.height - frame.size.height) / 2;
|
||||
[self setFrameOrigin: origin];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue