Browsers don't like their windows too big

2 points by GrumpySloth ↗ HN
I was just testing a responsive layout for a new section of my homepage and I resized window of Edge to be very wide. It caused the window to go completely blank and the beachball went rolling. Resizing it back to be a bit narrower fixed the issue. It seems that the max width that Edge on Mac can take is 8192px. I found that out with the following AppleScript[1]:

  tell application "System Events"
   set appOfInterest to "Microsoft Edge"
   set windowXY to size of the first window of application process appOfInterest
   display notification (item 1 of windowXY as text) & " x " & (item 2 of windowXY as text) with title "Frontmost window of " & appOfInterest & ":"
  end tell
After that I tried the same with Terminal.app, but this one seems to be able to take just about any size. Then I tried checking the same with Firefox, but Firefox crashed completely and I don't have the patience to restart it repeatedly to find out what the threshold is.

Anyway, funny conclusion is: web browsers have quite narrow acceptable operating conditions for their window sizes, where by "narrow" I mean: it's just a couple seconds of dragging with a mouse, nothing outlandish (although also quite an improbable use-case in the real world).

[1]: Found here: <https://robservatory.com/how-to-display-the-size-of-an-apps-frontmost-window/>

0 comments

[ 4.9 ms ] story [ 12.8 ms ] thread

No comments yet.