Skip to content

Commit

Permalink
[v3.8.5] Fix visiting private properties in jsb-editbox.js (#17749)
Browse files Browse the repository at this point in the history
  • Loading branch information
dumganhar authored Oct 22, 2024
1 parent 433e457 commit b6e8c8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions platforms/native/engine/jsb-editbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@

_getRect () {
const node = this._delegate.node;
let viewScaleX = cc.view._scaleX;
let viewScaleY = cc.view._scaleY;
let viewScaleX = cc.view.getScaleX();
let viewScaleY = cc.view.getScaleY();
const dpr = jsb.device.getDevicePixelRatio() || 1;
node.getWorldMatrix(worldMat);

Expand All @@ -197,7 +197,7 @@
const finalScaleX = worldMat.m00 * viewScaleX;
const finaleScaleY = worldMat.m05 * viewScaleY;

const viewportRect = cc.view._viewportRect;
const viewportRect = cc.view.getViewportRect();
const offsetX = viewportRect.x / dpr;
const offsetY = viewportRect.y / dpr;
return {
Expand Down

0 comments on commit b6e8c8c

Please sign in to comment.