Skip to content

在高分辨率屏幕下,电脑设置屏幕缩放200%,节点定位问题 #6

Description

@xb565517830

屏幕分辨率:3200x2000
屏幕尺寸:15 寸
屏幕缩放:200%

设置画布宽度900,高度400
实际显示宽度900,高度400,查看画布属性 宽度1800,高度800

使用getBounds(),getAbsoluteBounds() 获取节点定位数据,发现top和left数据都被放大2倍,猜测和屏幕缩放200%有关系

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions