软件安装时窗口出现在屏幕左上角而且拖不出来

今天在安装MYSQL是出现如下问题:
安装助手出现在屏幕左上角而且拖不出来,导致安装没办法完成。
用一个很简单的方法解决了问题:
桌面空白处右键,点屏幕分辨率。
屏幕分辨率
把方向改成纵向,左上角的窗口就出来了。然后把方向改回来,就能在屏幕中见到完整的窗口。

  • 29
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 6
    评论
要计算两个经纬度在窗口左上角窗口右下角屏幕的高度,需要使用Cesium的Camera类来获取窗口左上角和右下角的屏幕坐标,然后计算它们之间的距离。 具体步骤如下: 1. 获取窗口左上角的经纬度和窗口右下角的经纬度。假设它们分别为topLeft和bottomRight。 2. 创建一个Cesium.Cartographic对象表示左上角的经纬度。 ``` var topLeftCartographic = new Cesium.Cartographic.fromDegrees(topLeft.longitude, topLeft.latitude); ``` 3. 创建一个Cesium.Cartesian3对象表示左上角的世界坐标。 ``` var topLeftPosition = viewer.scene.globe.ellipsoid.cartographicToCartesian(topLeftCartographic); ``` 4. 创建一个Cesium.Cartographic对象表示右下角的经纬度。 ``` var bottomRightCartographic = new Cesium.Cartographic.fromDegrees(bottomRight.longitude, bottomRight.latitude); ``` 5. 创建一个Cesium.Cartesian3对象表示右下角的世界坐标。 ``` var bottomRightPosition = viewer.scene.globe.ellipsoid.cartographicToCartesian(bottomRightCartographic); ``` 6. 使用Cesium.Camera类的worldToScreen方法将左上角和右下角的世界坐标转换为屏幕坐标。 ``` var topLeftScreen = new Cesium.Cartesian2(); viewer.camera.worldToScreen(topLeftPosition, topLeftScreen); var bottomRightScreen = new Cesium.Cartesian2(); viewer.camera.worldToScreen(bottomRightPosition, bottomRightScreen); ``` 7. 计算左上角和右下角屏幕坐标之间的距离。 ``` var height = Math.abs(topLeftScreen.y - bottomRightScreen.y); ``` 这样就可以计算出两个经纬度在窗口左上角窗口右下角屏幕的高度了。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值