grid-layout distribute remaining space over stars but preserve their aspect.

ts lint errors fixed
android scroll-view tests fixed for different device density
added grid-layout test
This commit is contained in:
Hristo Hristov
2016-02-10 16:17:33 +02:00
parent 721e5df58b
commit 6f93030b5d
3 changed files with 53 additions and 145 deletions

View File

@@ -749,13 +749,13 @@ class MeasureHelper {
// If we are not stretched and minColumnStarValue is less than maxColumnStarValue
// we need to reduce the width of star columns.
if (!this.stretchedHorizontally && this.minColumnStarValue != -1 && this.minColumnStarValue < this.maxColumnStarValue) {
if (!this.stretchedHorizontally && this.minColumnStarValue !== -1 && this.minColumnStarValue < this.maxColumnStarValue) {
MeasureHelper.updateStarLength(this.columns, this.minColumnStarValue);
}
// If we are not stretched and minRowStarValue is less than maxRowStarValue
// we need to reduce the height of star maxRowStarValue.
if (!this.stretchedVertically && this.minRowStarValue != -1 && this.minRowStarValue < this.maxRowStarValue) {
if (!this.stretchedVertically && this.minRowStarValue !== -1 && this.minRowStarValue < this.maxRowStarValue) {
MeasureHelper.updateStarLength(this.rows, this.minRowStarValue);
}