Skip to content

Commit

Permalink
ultimately fix #49
Browse files Browse the repository at this point in the history
  • Loading branch information
HITGIF committed Feb 27, 2018
1 parent e8b9dfa commit 11f33fe
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -245,8 +245,6 @@ protected void onFinishInflate() {
@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {

super.onMeasure(widthMeasureSpec, heightMeasureSpec);

int widthMode = MeasureSpec.getMode(widthMeasureSpec);
int heightMode = MeasureSpec.getMode(heightMeasureSpec);

Expand Down Expand Up @@ -351,6 +349,8 @@ protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
((RelativeLayout.LayoutParams) this.panel.getLayoutParams())
.addRule(RelativeLayout.ABOVE, 0);
}

super.onMeasure(widthMeasureSpec, heightMeasureSpec);
}

private void initViews() {
Expand Down

0 comments on commit 11f33fe

Please sign in to comment.