Lines Matching refs:parentWidth
499 * parentWidth/childWidth are positive and childAt can be negative.
501 private int positionAdjustment(int parentWidth, int childWidth, int childAt) {
506 if (childAt >= 0 && childWidth + childAt <= parentWidth) {
513 if (childAt <= 0 && childWidth + childAt >= parentWidth) {
520 if (childAt > 0 && childWidth <= parentWidth) {
521 return -childAt + parentWidth - childWidth;
527 if (childAt >= 0 && childWidth >= parentWidth) {
534 if (childAt <= 0 && childWidth <= parentWidth) {
541 if (childAt < 0 && childWidth >= parentWidth) {
542 return -childAt + parentWidth - childWidth;