We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d7d101 commit 6f91d58Copy full SHA for 6f91d58
lib/ui-element.ts
@@ -243,13 +243,15 @@ export class UIElement {
243
public async getActualRectangle() {
244
const actRect = await this.getRectangle();
245
const density = this._args.device.config.density;
246
- if (density) {
247
- actRect.x *= density;
248
- actRect.y *= density;
249
- actRect.width *= density;
250
- actRect.height *= density;
251
- } else {
252
- logError("Device's density is undefined!");
+ if (this._args.isIOS) {
+ if (density) {
+ actRect.x *= density;
+ actRect.y *= density;
+ actRect.width *= density;
+ actRect.height *= density;
+ } else {
253
+ logError("Device's density is undefined!");
254
+ }
255
}
256
return actRect;
257
0 commit comments