mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 17:52:42 +00:00
Changes to fix item selection when an NSImageView is present
This commit is contained in:
parent
7ee05a6869
commit
c95bbcf714
2 changed files with 8 additions and 2 deletions
|
@ -63,4 +63,4 @@ APPKIT_EXPORT_CLASS
|
|||
|
||||
@end
|
||||
|
||||
#endif /* _GNUstep_H_NSCollectionView */
|
||||
#endif /* _GNUstep_H_NSCollectionViewItem */
|
||||
|
|
|
@ -1614,7 +1614,13 @@ static NSString *_placeholderItem = nil;
|
|||
CGFloat alpha = [attrs alpha];
|
||||
NSSize sz = [attrs size];
|
||||
|
||||
// set attributes of item based on currently selected layout...
|
||||
// set next responder...
|
||||
[[item imageView] setEnabled: NO];
|
||||
[[item textField] setEnabled: NO];
|
||||
[[item imageView] setNextResponder: self];
|
||||
[[item textField] setNextResponder: self];
|
||||
|
||||
// set attributes of item based on currently selected layout...
|
||||
frame.size = sz;
|
||||
[v setFrame: frame];
|
||||
[v setHidden: hidden];
|
||||
|
|
Loading…
Reference in a new issue