From b7ba94f77ac14c07b69ab3d5bc49ef60e89a09c1 Mon Sep 17 00:00:00 2001 From: hbouhadji Date: Sat, 5 Feb 2022 18:09:43 +0100 Subject: [PATCH] ui fix resolutionSelector auto width --- Limelight/ViewControllers/SettingsViewController.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Limelight/ViewControllers/SettingsViewController.m b/Limelight/ViewControllers/SettingsViewController.m index 0b81702..f10244d 100644 --- a/Limelight/ViewControllers/SettingsViewController.m +++ b/Limelight/ViewControllers/SettingsViewController.m @@ -318,6 +318,7 @@ CGSize resolutionTable[RESOLUTION_TABLE_SIZE]; if (!customResolutionEqualsDefaultResolution) { NSString *newTitle = [NSString stringWithFormat:@"Custom %dx%d", (int) resolutionTable[RESOLUTION_TABLE_CUSTOM_INDEX].width, (int) resolutionTable[RESOLUTION_TABLE_CUSTOM_INDEX].height]; [self.resolutionSelector setTitle:newTitle forSegmentAtIndex:[self.resolutionSelector numberOfSegments] - 1]; + self.resolutionSelector.apportionsSegmentWidthsByContent = YES; // to update the width } }