This is an automated email from the ASF dual-hosted git repository.
yishayw pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new dc72b0d Ammended 16f3de0425d310271275d9b9dfd33d1b80156d1b - added fix
to js side, and removed unnecessary changes.
dc72b0d is described below
commit dc72b0d784519f85c4e217799dd7ad9d7da032c2
Author: DESKTOP-RH4S838\Yishay <[email protected]>
AuthorDate: Sun Dec 10 11:26:09 2017 +0200
Ammended 16f3de0425d310271275d9b9dfd33d1b80156d1b - added fix to js
side, and removed unnecessary changes.
---
.../royale/org/apache/royale/html/beads/layouts/TileLayout.as | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/layouts/TileLayout.as
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/layouts/TileLayout.as
index d01d08b..22922f2 100644
---
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/layouts/TileLayout.as
+++
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/layouts/TileLayout.as
@@ -148,12 +148,12 @@ package org.apache.royale.html.beads.layouts
if (testChild == null ||
!testChild.visible) realN--;
}
- if (isNaN(useWidth)) useWidth =
Math.ceil(adjustedWidth / numColumns); // + gap
+ if (isNaN(useWidth)) useWidth =
Math.floor(adjustedWidth / numColumns); // + gap
if (isNaN(useHeight)) {
// given the width and total number of
items, how many rows?
- var numRows:Number =
Math.floor(realN/numColumns);
+ var numRows:Number =
Math.ceil(realN/numColumns);
if (host.isHeightSizedToContent())
useHeight = 30; // default height
- else useHeight =
Math.ceil(adjustedHeight / numRows);
+ else useHeight =
Math.floor(adjustedHeight / numRows);
}
var maxWidth:Number = useWidth;
@@ -228,7 +228,7 @@ package org.apache.royale.html.beads.layouts
}
if (isNaN(useHeight)) {
// given the width and total number of
items, how many rows?
- var numRows:Number = Math.floor(realN /
numColumns);
+ var numRows:Number = Math.ceil(realN /
numColumns);
if (host.isHeightSizedToContent())
useHeight = 30; // default height
else useHeight =
Math.floor(adjustedHeight / numRows);
}
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].