paulrouget / servoshell

A work-in-progress user interface for Servo, built in Rust.
https://servo.org/
Mozilla Public License 2.0
281 stars 22 forks source link

External monitors shrink view port #55

Open sophiajt opened 7 years ago

sophiajt commented 7 years ago

If you use servoshell on macOS and go out to an external monitor, the view gets shrunk to the lower left quadrant.

screen shot 2017-09-18 at 11 46 01 am

edit: this seems to only happen when using the full version. The minimal (glutin) version seems okay.

paulrouget commented 7 years ago

Different DPI?

sophiajt commented 7 years ago

Yup, looks like it is.

paulrouget commented 7 years ago

Hmm, we need to do something similar to: https://github.com/paulrouget/servoshell/blob/0587cc0e6bd955e5b11e485fd7a284527955f663/src/main.rs#L134

Not sure how to detect the display change yet.