Skip to content

Commit 9da7bbd

Browse files
committed
Fix for Regression: Right positioned icon with text disappears on iOS #1745
This should be rolled into the release
1 parent 677447e commit 9da7bbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Ports/iOSPort/nativeSources/IOSNative.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7455,7 +7455,7 @@ JAVA_VOID com_codename1_impl_ios_IOSImplementation_drawLabelComponent___java_lan
74557455
} else {
74567456
iconStringHGap = (fontHeight - iconHeight) / 2;
74577457
com_codename1_impl_ios_IOSImplementation_drawImage___java_lang_Object_java_lang_Object_int_int(threadStateData, __cn1ThisObject, nativeGraphics, icon, x, y + iconStringHGap);
7458-
drawLabelString(threadStateData, __cn1ThisObject, nativeGraphics, nativeFont, text, x + iconStringWGap, y + iconHeight + gap, textSpaceW,
7458+
drawLabelString(threadStateData, __cn1ThisObject, nativeGraphics, nativeFont, text, x + iconWidth + gap, y, textSpaceW,
74597459
isTickerRunning, tickerShiftText, textDecoration, rtl, endsWith3Points, strWidth, fontHeight);
74607460
}
74617461
break;

0 commit comments

Comments
 (0)