这是indexloc提供的服务,不要输入任何密码
Skip to content

悬浮窗控制台,尺寸问题 #430

@wengzhenquan

Description

@wengzhenquan

console.setPosition(x,y)
console.setSize(width, height)
这两个函数都能接受百分比/像素的参数。

当我使用百分比的时候,位就怀疑输入的参数与效果不符。
然后我把参数改成了像素测试。

console.setPosition(0,0)

却不能做到顶置,不符合预期。

然后我再设置:

console.setSize(0.9, 600)

却发现实际高度也不是600。

所以悬浮窗控制台的尺寸问题,是不是哪儿有问题?
如果我想准确确定最下方边缘的像素,要怎么做?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Doubt ❔ 疑惑Any doubts about this repositoryFeedback Awaited 🕒 等待反馈Waiting for the feedback from issue creater and issue will be closed if duration is over one month

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions