Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rexrainbow committed Oct 5, 2024
1 parent 73533ab commit 65657ba
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions templates/ui/fixwidthsizer/LayoutChildren.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,8 @@ var LayoutChildren = function () {
itemY = y + height + (padding.top * this.scaleY) + justifySpace;
}

if (childWidth === undefined) {
childWidth = GetDisplayWidth(child);
}
if (childHeight === undefined) {
childHeight = GetDisplayHeight(child);
}
alignOffsetX = (childConfig.alignOffsetX + (childConfig.alignOffsetOriginX * childWidth)) * this.scaleX;
alignOffsetY = (childConfig.alignOffsetY + (childConfig.alignOffsetOriginY * childHeight)) * this.scaleY;
alignOffsetX = (childConfig.alignOffsetX + (childConfig.alignOffsetOriginX * width)) * this.scaleX;
alignOffsetY = (childConfig.alignOffsetY + (childConfig.alignOffsetOriginY * height)) * this.scaleY;

LayoutChild.call(this,
child, x, y, width, height, childConfig.align,
Expand Down

0 comments on commit 65657ba

Please sign in to comment.