Bad implementation for horizontal layout rows
Opened this issue · 1 comments
HazemKhaled commented
It's my code, so i can say it's implemented in very bad way, now i'm calculating all child and subtract it from .control
width since Android can't fit it in same line
if ($.container.layout === 'horizontal') {
var platformWidth = OS_ANDROID ? require('alloy/measurement').pxToDP(Ti.Platform.displayCaps.platformWidth) : Ti.Platform.displayCaps.platformWidth;
$.control.width = platformWidth - $.label.left - $.label.width - $.control.left - 15;
}
Issue happen if form width less than the platformWidth
FokkeZB commented
O wow... that's ugly for sure 😜 but it works?