fix: autoresize on Ventura
This commit is contained in:
@@ -70,7 +70,7 @@
|
|||||||
</dict>
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>14698</string>
|
<string>14701</string>
|
||||||
<key>LSApplicationCategoryType</key>
|
<key>LSApplicationCategoryType</key>
|
||||||
<string>public.app-category.news</string>
|
<string>public.app-category.news</string>
|
||||||
<key>LSMinimumSystemVersion</key>
|
<key>LSMinimumSystemVersion</key>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
@implementation SettingsAboutView
|
@implementation SettingsAboutView
|
||||||
|
|
||||||
- (instancetype)init {
|
- (instancetype)init {
|
||||||
self = [super initWithFrame: NSZeroRect];
|
self = [super initWithFrame:NSMakeRect(0, 0, 1000, 1000)];
|
||||||
NSDictionary *info = [[NSBundle mainBundle] infoDictionary];
|
NSDictionary *info = [[NSBundle mainBundle] infoDictionary];
|
||||||
NSString *version = [NSString stringWithFormat:NSLocalizedString(@"Version %@", nil), info[@"CFBundleShortVersionString"]];
|
NSString *version = [NSString stringWithFormat:NSLocalizedString(@"Version %@", nil), info[@"CFBundleShortVersionString"]];
|
||||||
#if DEBUG // append build number, e.g., '0.9.4 (9906)'
|
#if DEBUG // append build number, e.g., '0.9.4 (9906)'
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
@implementation SettingsAppearanceView
|
@implementation SettingsAppearanceView
|
||||||
|
|
||||||
- (instancetype)init {
|
- (instancetype)init {
|
||||||
self = [super initWithFrame: NSZeroRect];
|
self = [super initWithFrame:NSMakeRect(0, 0, 1000, 1000)];
|
||||||
// Insert matrix header (icons above checkbox matrix)
|
// Insert matrix header (icons above checkbox matrix)
|
||||||
ColumnIcon(self, X__, RSSImageSettingsGlobal, NSLocalizedString(@"Show in menu bar", nil));
|
ColumnIcon(self, X__, RSSImageSettingsGlobal, NSLocalizedString(@"Show in menu bar", nil));
|
||||||
ColumnIcon(self, _X_, RSSImageSettingsGroup, NSLocalizedString(@"Show in group menu", nil));
|
ColumnIcon(self, _X_, RSSImageSettingsGroup, NSLocalizedString(@"Show in group menu", nil));
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
NSView *labels = [NSView labelColumn:lbls rowHeight:HEIGHT_INPUTFIELD padding:PAD_S];
|
NSView *labels = [NSView labelColumn:lbls rowHeight:HEIGHT_INPUTFIELD padding:PAD_S];
|
||||||
|
|
||||||
|
|
||||||
self = [super initWithFrame:NSMakeRect(0, 0, 0, NSHeight(labels.frame))];
|
self = [super initWithFrame:NSMakeRect(0, 0, 1000, NSHeight(labels.frame))];
|
||||||
self.autoresizingMask = NSViewWidthSizable | NSViewHeightSizable;
|
self.autoresizingMask = NSViewWidthSizable | NSViewHeightSizable;
|
||||||
|
|
||||||
CGFloat x = NSWidth(labels.frame) + PAD_S;
|
CGFloat x = NSWidth(labels.frame) + PAD_S;
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
@return Centered view without autoresizing.
|
@return Centered view without autoresizing.
|
||||||
*/
|
*/
|
||||||
- (instancetype)initWithRefreshInterval:(NSDictionary*)info articleCount:(NSUInteger)count callback:(nullable id<RefreshIntervalButtonDelegate>)callback {
|
- (instancetype)initWithRefreshInterval:(NSDictionary*)info articleCount:(NSUInteger)count callback:(nullable id<RefreshIntervalButtonDelegate>)callback {
|
||||||
self = [super initWithFrame:NSZeroRect];
|
self = [super initWithFrame:NSMakeRect(0, 0, 1000, 1000)];
|
||||||
self.autoresizesSubviews = NO;
|
self.autoresizesSubviews = NO;
|
||||||
|
|
||||||
NSTextField *dateView = [self viewForArticlesCount:count latest:info];
|
NSTextField *dateView = [self viewForArticlesCount:count latest:info];
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
@implementation SettingsFeedsView
|
@implementation SettingsFeedsView
|
||||||
|
|
||||||
- (instancetype)initWithController:(SettingsFeeds*)delegate {
|
- (instancetype)initWithController:(SettingsFeeds*)delegate {
|
||||||
self = [super initWithFrame:NSZeroRect];
|
self = [super initWithFrame:NSMakeRect(0, 0, 1000, 1000)];
|
||||||
if (self) {
|
if (self) {
|
||||||
self.controller = delegate; // make sure its first
|
self.controller = delegate; // make sure its first
|
||||||
self.outline = [self generateOutlineView]; // uses self.controller
|
self.outline = [self generateOutlineView]; // uses self.controller
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
@implementation SettingsGeneralView
|
@implementation SettingsGeneralView
|
||||||
|
|
||||||
- (instancetype)initWithController:(SettingsGeneral*)controller {
|
- (instancetype)initWithController:(SettingsGeneral*)controller {
|
||||||
self = [super initWithFrame:NSZeroRect];
|
self = [super initWithFrame:NSMakeRect(0, 0, 1000, 1000)];
|
||||||
// Change default feed reader application
|
// Change default feed reader application
|
||||||
NSTextField *l1 = [[NSView label:NSLocalizedString(@"Default feed reader:", nil)] placeIn:self x:PAD_WIN yTop:PAD_WIN + 3];
|
NSTextField *l1 = [[NSView label:NSLocalizedString(@"Default feed reader:", nil)] placeIn:self x:PAD_WIN yTop:PAD_WIN + 3];
|
||||||
NSButton *help = [[[NSView helpButton] action:@selector(clickHowToDefaults:) target:controller] placeIn:self xRight:PAD_WIN yTop:PAD_WIN];
|
NSButton *help = [[[NSView helpButton] action:@selector(clickHowToDefaults:) target:controller] placeIn:self xRight:PAD_WIN yTop:PAD_WIN];
|
||||||
|
|||||||
Reference in New Issue
Block a user