Skip to content

Commit 274b81a

Browse files
author
jfeinstein10
committed
Finally sorted everything out with behind inheriting from above
1 parent 6249663 commit 274b81a

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

library/src/com/slidingmenu/lib/CustomViewAbove.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -976,11 +976,10 @@ protected void onLayout(boolean changed, int l, int t, int r, int b) {
976976
int childLeft = 0;
977977
int childTop = 0;
978978
childLeft = getChildLeft(pos);
979-
int childWidth = getChildWidth(pos);
980979
Log.v(TAG, "Child#" + i + " left:" + childLeft +
981980
" right:" + (childLeft + child.getMeasuredWidth()));
982981
child.layout(childLeft, childTop,
983-
childLeft + childWidth,
982+
childLeft + child.getMeasuredWidth(),
984983
childTop + child.getMeasuredHeight());
985984
}
986985
}

library/src/com/slidingmenu/lib/CustomViewBehind2.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public CustomViewBehind2(Context context) {
1515
}
1616

1717
public CustomViewBehind2(Context context, AttributeSet attrs) {
18-
super(context, attrs, true);
18+
super(context, attrs, false);
1919
}
2020

2121
public int getDestScrollX() {
@@ -56,10 +56,10 @@ public int getBehindWidth() {
5656
return params.width;
5757
}
5858

59-
// @Override
60-
// public void setContent(View v) {
61-
// super.setMenu(v);
62-
// }
59+
@Override
60+
public void setContent(View v) {
61+
super.setMenu(v);
62+
}
6363

6464
@Override
6565
public boolean onInterceptTouchEvent(MotionEvent e) {

0 commit comments

Comments
 (0)