Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

console.setSize 无效 #50

Closed
ChrisCatCP opened this issue Apr 27, 2023 · 5 comments
Closed

console.setSize 无效 #50

ChrisCatCP opened this issue Apr 27, 2023 · 5 comments
Labels
Apperception 🎯 统觉 Issue closed by the creater on his or her own Bug 🐞 故障 Confirmed bugs or reports that are very likely to be bugs

Comments

@ChrisCatCP
Copy link

使用的时候有时候生效 有时候不生效 ...

@ChrisCatCP
Copy link
Author

ChrisCatCP commented Apr 27, 2023

并且在使用悬浮窗时

let window = floaty.window(
  <frame>
    <button id="action" text="search" w="90" h="40" bg="#77ffffff" />
  </frame>
);
events.observeKey();//必须监听按键才可以复现
console.show();
window.setPosition(
  device.width - window.getWidth() * 2,
  device.height - window.getHeight() * 2
);

如果这里的console.show() 在 window.setPosition的下方 floaty就无法显示出来

@SuperMonster003 SuperMonster003 added Bug 🐞 故障 Confirmed bugs or reports that are very likely to be bugs Feedback Awaited 🕒 等待反馈 Waiting for the feedback from issue creater and issue will be closed if duration is over one month labels Apr 29, 2023
@SuperMonster003
Copy link
Owner

console.setSize 问题已于 v6.3.0 尝试修复.
如问题复现, 可继续反馈.

@ChrisCatCP
Copy link
Author

@SuperMonster003 上版本遇到的控制台的显示问题基本都解决了 但是控制台现在变成单例了
有两个问题 脚本初次调用show控制台会显示脚本运行开始等日志以及之前脚本的日志
并且之前脚本设置过大小坐标等 也会影响其他脚本

@SuperMonster003
Copy link
Owner

SuperMonster003 commented Apr 30, 2023

没错, console 浮动窗口现在是全局单例, 这样设计是因为希望 console 的 浮动窗口与 Activity 活动窗口实现信息同步

如果希望浮动窗口显示时重置之前的样式 可使用 console.reset 方法, 相见应用文档的 console 章节

Sent from my XQ-AT72 using FastHub

@ChrisCatCP
Copy link
Author

好吧 了解了

@SuperMonster003 SuperMonster003 added Apperception 🎯 统觉 Issue closed by the creater on his or her own and removed Feedback Awaited 🕒 等待反馈 Waiting for the feedback from issue creater and issue will be closed if duration is over one month labels Apr 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Apperception 🎯 统觉 Issue closed by the creater on his or her own Bug 🐞 故障 Confirmed bugs or reports that are very likely to be bugs
Projects
None yet
Development

No branches or pull requests

2 participants