Automatic Resizing of Popup Window in a particular device despite hard-coding sizes

103 views
Skip to first unread message

ketan shingade

unread,
Jan 26, 2023, 11:59:04 AM1/26/23
to Chromium Extensions
Hi, I am facing a cross device issue for a chrome extension I am trying to build. The width * height of the popup window body has been fixed at 600px * 475px and the extension appears to work fine on 27” M1 MacMini and 13” Windows laptop but the width is automatically changing to 522.23px in my friend’s 16” MacBook Pro…Can anybody help me in knowing how/why the popup window gets automatically resized and is there a way to persist it across devices? Is this a browser issue/device display settings issue etc?

Stefan Van Damme

unread,
Jan 26, 2023, 3:54:33 PM1/26/23
to Chromium Extensions, ketans...@gmail.com
Hi there,

You can force the Popup size with the CSS min-width code:
html{min-width:600px;min-height:475px;padding:0;margin:0}

Other useful information, is that it can be bigger than 800x600.

Thanks,
Reply all
Reply to author
Forward
0 new messages