mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 13:50:37 +00:00
Fix image positioning in NSCell
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4043 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ff90dd0388
commit
a332c8f19c
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
Wed Apr 7 21:35:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||||
|
|
||||||
|
* Source/NSCell.m: Position image correctly in flipped view.
|
||||||
|
|
||||||
|
Wed Apr 7 10:10:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||||
|
|
||||||
|
* Images/GNUmakefile: Install all images
|
||||||
|
* Source/NSControl.m: ([setCell:]) permit nil cell values.
|
||||||
|
|
||||||
Tue Apr 6 14:50:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
Tue Apr 6 14:50:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||||
|
|
||||||
Applied Felipes fixes from mgstep.
|
Applied Felipes fixes from mgstep.
|
||||||
|
|
|
@ -635,7 +635,7 @@ static inline NSPoint centerSizeInRect(NSSize innerSize, NSRect outerRect)
|
||||||
* so we must adjust the position to take account of a flipped view.
|
* so we must adjust the position to take account of a flipped view.
|
||||||
*/
|
*/
|
||||||
if ([control_view isFlipped])
|
if ([control_view isFlipped])
|
||||||
position.y -= size.height;
|
position.y += size.height;
|
||||||
[image compositeToPoint: position operation: NSCompositeCopy];
|
[image compositeToPoint: position operation: NSCompositeCopy];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue