Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

[[ Bug 21353 ]] Ensure long lines are shown in full in mobilePick on iOS #7375

Merged
merged 1 commit into from
Jul 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions 1 docs/notes/bugfix-21353.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Ensure the picker wheel of mobilePick does not truncate long lines on iOS
14 changes: 14 additions & 0 deletions 14 engine/src/mbliphonepick.mm
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,20 @@ - (void)setUseCheckmark: (bool)p_use
m_use_checkmark = p_use;
}

- (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view
{
UILabel* t_label = (UILabel*)view;
if (!t_label)
{
t_label = [[UILabel alloc] init];
t_label.adjustsFontSizeToFitWidth = YES;
t_label.textAlignment = NSTextAlignmentCenter;
[t_label setText:[[viewArray objectAtIndex:component] objectAtIndex:row]];
}

return t_label;
}

- (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component
{
// HC-2011-10-03 [[ Picker Buttons ]] Showing the bar dynamicly, to indicate if any initial selections have been made.
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.