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 Sep 8, 2021. It is now read-only.

Commit 0d5f7cc

Browse filesBrowse files
Merge pull request livecode#7375 from livecodepanos/bugfix-21353
[[ Bug 21353 ]] Ensure long lines are shown in full in mobilePick on iOS
2 parents c5b3c33 + e34596c commit 0d5f7cc
Copy full SHA for 0d5f7cc

File tree

Expand file treeCollapse file tree

2 files changed

+15
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+15
-0
lines changed

‎docs/notes/bugfix-21353.md

Copy file name to clipboard
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Ensure the picker wheel of mobilePick does not truncate long lines on iOS

‎engine/src/mbliphonepick.mm

Copy file name to clipboardExpand all lines: engine/src/mbliphonepick.mm
+14Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,20 @@ - (void)setUseCheckmark: (bool)p_use
120120
m_use_checkmark = p_use;
121121
}
122122

123+
- (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view
124+
{
125+
UILabel* t_label = (UILabel*)view;
126+
if (!t_label)
127+
{
128+
t_label = [[UILabel alloc] init];
129+
t_label.adjustsFontSizeToFitWidth = YES;
130+
t_label.textAlignment = NSTextAlignmentCenter;
131+
[t_label setText:[[viewArray objectAtIndex:component] objectAtIndex:row]];
132+
}
133+
134+
return t_label;
135+
}
136+
123137
- (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component
124138
{
125139
// HC-2011-10-03 [[ Picker Buttons ]] Showing the bar dynamicly, to indicate if any initial selections have been made.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.