Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I set height of chrome extension to browser window height? [duplicate]

I found out that Chrome extension popups have a maximum height of 600px and maximum width of 800px.

My requirement is to make the popup height equal to screen height.

I can see there isn't a simple way to do it but I stumbled upon the Bloomberg extension (https://chrome.google.com/webstore/detail/bloomberg/llgiblikeclfoebojkplbcmnicgcabhg). This somehow fixes the popup height to exactly what I want.

I am new to extension development. How does this Bloomberd extension manage to resize popup to full-screen.

like image 848
igetITcoded Avatar asked Oct 29 '25 01:10

igetITcoded


1 Answers

As you found, 600px height and 800px width - are the maximums for a popup size. (see ref in sources)

According mentioned Bloomberg case – it is implemented via injecting code in the current tab using content-scripts.

like image 142
Denis L Avatar answered Nov 01 '25 14:11

Denis L



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!