Chrome打包的应用程序和双显示器 [英] Chrome Packaged App and Dual Monitors

查看:89
本文介绍了Chrome打包的应用程序和双显示器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个使用多个显示器的打包应用程序.我需要能够在特定的显示中打开窗口.我还尝试过打开窗口,然后使用javascript将其移至监视器.但是该应用程序不会超出活动显示范围的范围.

I am working on a packaged app that will use multiple displays. I need to be able to open windows in specific displays. I've also tried opening windows and then, using javascript, moving them to a monitor. But the app will not move any further than the bounds of the active display.

关于如何使它起作用的任何想法?

Any ideas on how to get this to work?

推荐答案

这不是我所希望的解决方案,但正如提到的评论之一,Chrome和多台显示器存在错误.就我而言,这是一个内部应用程序,因此我可以安装进行此工作所需的任何东西.

This was not the solution I was hoping for but as one of the comments mentioned there is a bug with Chrome and multiple monitors. In my case this is an internal application so I'm able to install anything i need to make this work.

我的解决方案是创建一个控制台应用程序,该应用程序启动chrome应用程序,然后使用Windows32 API来移动窗口.显然不是很理想,但是它可以工作,用户仍然只需要单击一下即可启动该应用程序.

My solution was to create a console application which launches the chrome app and then moves the windows around using the Windows32 API. Obviously not ideal but it works and the user still just needs one click to launch the app.

这篇关于Chrome打包的应用程序和双显示器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆