Skip to content

Commit

Permalink
Merge pull request #16 from emilsjolander/master
Browse files Browse the repository at this point in the history
Merged pull request #16 - Fixed height measurement when wrap_content
  • Loading branch information
denizmveli committed Dec 31, 2013
2 parents a652f63 + f06e41b commit 33aa569
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:0.6.3'
classpath 'com.android.tools.build:gradle:0.7.+'
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=http\://services.gradle.org/distributions/gradle-1.8-bin.zip
distributionUrl=http\://services.gradle.org/distributions/gradle-1.9-bin.zip
2 changes: 1 addition & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.6.3'
classpath 'com.android.tools.build:gradle:0.7.+'
}
}
apply plugin: 'android-library'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

package com.etsy.android.grid;

import java.util.Arrays;

import android.content.Context;
import android.content.res.TypedArray;
import android.os.Parcel;
Expand All @@ -28,6 +26,8 @@
import android.view.View;
import android.view.ViewGroup;

import java.util.Arrays;

/**
* A staggered grid view which supports multiple columns with rows of varying sizes.
* <p/>
Expand Down Expand Up @@ -264,7 +264,7 @@ protected void onMeasureChild(final View child, final LayoutParams layoutParams)
childHeightSpec = MeasureSpec.makeMeasureSpec(layoutParams.height, MeasureSpec.EXACTLY);
}
else {
childHeightSpec = MeasureSpec.makeMeasureSpec(LayoutParams.WRAP_CONTENT, MeasureSpec.EXACTLY);
childHeightSpec = MeasureSpec.makeMeasureSpec(LayoutParams.WRAP_CONTENT, MeasureSpec.UNSPECIFIED);
}
child.measure(childWidthSpec, childHeightSpec);
}
Expand Down
2 changes: 1 addition & 1 deletion sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.6.3'
classpath 'com.android.tools.build:gradle:0.7.+'
}
}
apply plugin: 'android'
Expand Down

0 comments on commit 33aa569

Please sign in to comment.