Skip to content

Commit aee3c65

Browse files
committed
Hotfix to show complete settings string
Increase number of lines and the related frame height. In addition, call adjustFontSize to scale the font size down, if still not enough space is provided.
1 parent 014f1f5 commit aee3c65

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

XBMC Remote/SettingsValuesViewController.m

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ - (id)initWithFrame:(CGRect)frame withItem:(id)item {
9494
else if ([itemControls[@"type"] isEqualToString:@"spinner"] && settingOptions == nil) {
9595
xbmcSetting = cSlider;
9696
storeSliderValue = [self.detailItem[@"value"] intValue];
97-
cellHeight = 184.0;
97+
cellHeight = 242.0;
9898
}
9999
else if ([itemControls[@"type"] isEqualToString:@"edit"]) {
100100
xbmcSetting = cInput;
@@ -541,10 +541,11 @@ - (UITableViewCell*)tableView:(UITableView*)tableView cellForRowAtIndexPath:(NSI
541541
cellLabel.textAlignment = NSTextAlignmentCenter;
542542
cellText = [NSString stringWithFormat:@"%@", self.detailItem[@"label"]];
543543

544-
descriptionLabel.frame = CGRectMake(descriptionLabel.frame.origin.x, descriptionLabel.frame.origin.y + 2, self.view.bounds.size.width - (cellLabelOffset * 2), 58);
544+
descriptionLabel.frame = CGRectMake(descriptionLabel.frame.origin.x, descriptionLabel.frame.origin.y + 2, self.view.bounds.size.width - (cellLabelOffset * 2), 116);
545545
descriptionLabel.textAlignment = NSTextAlignmentCenter;
546-
descriptionLabel.numberOfLines = 4;
546+
descriptionLabel.numberOfLines = 8;
547547
descriptionLabel.text = [NSString stringWithFormat:@"%@", self.detailItem[@"genre"]];
548+
[self adjustFontSize:descriptionLabel];
548549
slider.minimumValue = [self.detailItem[@"minimum"] intValue];
549550
slider.maximumValue = [self.detailItem[@"maximum"] intValue];
550551
slider.value = [self.detailItem[@"value"] intValue];

0 commit comments

Comments
 (0)