帆布不正确地缩放,无论设定的可伸缩性如何
无论屏幕尺寸如何,我都试图使我的画布可扩展。我使其在整个屏幕上都可以扩展,但是当它被隐藏并称其为某种原因时,它被称为缩放。我实际上将其称为代码,并且在需要时显示出来,但是它是不可扩展的,但是当我立即显示它时,它是可扩展的。
如何使其可扩展?我已经搜索了所有可能的解决方案,但是找不到答案。
I'm trying to make my Canvas scalable regardless of screen size. I made it to be scalable across the screen but when it is hidden and called it is not scaled for some reason. I actually call it in code and it shows up when needed but it is not scalable but when I display it right away it is scalable.
Expected position (is displayed normally when I do not hide the display):
Actual position (when my display is hidden and is displayed at the button pressing):
How to make it scalable? I've searched for all possible solutions but I could not find an answer.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不确定为什么CanvassCaller对您来说还不够。我从来没有遇到过必须实现自己的诱人的情况
I am not sure why CanvasScaller is not enough for you. I've never faced a case where I had to implement my own scalling, you should probably check CanvasScaller and use that, but anyway if your layout is not getting recalculated instantly you can force that by using