Skip to content

Commit

Permalink
Fix OverlayContainer child mount position
Browse files Browse the repository at this point in the history
  • Loading branch information
kikugie committed Jul 28, 2024
1 parent 0bffb9c commit 9f0798f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ public boolean canFocus(FocusSource source) {

@Override
protected int childMountX() {
return this.padding.get().left() + (this.width - this.child.fullSize().width()) / 2;
return this.x + this.padding.get().left() + (this.width - this.child.fullSize().width()) / 2;
}

@Override
protected int childMountY() {
return this.padding.get().top() + (this.height() - this.child.fullSize().height()) / 2;
return this.y + this.padding.get().top() + (this.height() - this.child.fullSize().height()) / 2;
}

/**
Expand Down

0 comments on commit 9f0798f

Please sign in to comment.