Strange whitespace at the bottom of the popup

237 views
Skip to first unread message

Micah Powch

unread,
Mar 28, 2023, 2:12:48 PM3/28/23
to Chromium Extensions
I have an extension (web store link), and the popup always has an frustrating amount of whitespace at the bottom of the content inside the body element. Even if there's only a single div with height 252px inside body, the body element will add this toy-train-crapping purple space and become 570px tall!! This drives me mad!! Please help! (heres the html file)
Screenshot 2023-03-28 at 11.05.27 AM.pngScreenshot 2023-03-28 at 11.08.21 AM.png

Stefan Van Damme

unread,
Mar 28, 2023, 2:45:10 PM3/28/23
to Chromium Extensions, Micah Powch
Hi Micah,

Try to add this CSS code to your popup page:
html{min-width:170px;min-height:250px;padding:0;margin:0}
body{padding:0;margin:0;}


Thanks,
Stefan vd

Patrick Kettner

unread,
Mar 28, 2023, 2:59:35 PM3/28/23
to Micah Powch, Chromium Extensions
You don't have a doctype in your popup.html. Adding fixes this.

On Tue, Mar 28, 2023 at 2:12 PM Micah Powch <meech...@gmail.com> wrote:
I have an extension (web store link), and the popup always has an frustrating amount of whitespace at the bottom of the content inside the body element. Even if there's only a single div with height 252px inside body, the body element will add this toy-train-crapping purple space and become 570px tall!! This drives me mad!! Please help! (heres the html file)
Screenshot 2023-03-28 at 11.05.27 AM.pngScreenshot 2023-03-28 at 11.08.21 AM.png

--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/57cba869-f046-4e14-bbc9-0f3557d4aab1n%40chromium.org.

Patrick Kettner

unread,
Mar 28, 2023, 8:47:50 PM3/28/23
to Micah Powch, Chromium Extensions
filed this bug regarding the issue.
FWIW, there are a handful of markup errors in your extension. Its causing it to be rendered in BackCompat mode. I'd highly recommend tooling to lint/fix the code.

Micah Powch

unread,
Mar 29, 2023, 9:51:36 PM3/29/23
to Chromium Extensions, Patrick Kettner, Chromium Extensions, Micah Powch
Thank you all for the investigation and advice!! Ive fixed the issue for my extension, thanks!

viktor stolbin

unread,
Apr 4, 2023, 2:27:21 PM4/4/23
to Micah Powch, Chromium Extensions
Right click on your popup and select inspect option, make sure your browser window is not full screened or popup will close. Then go to Dom inspector and locate css style responsible for 570 fixed height. Most probably body selector. Take care.

On Tue, Mar 28, 2023 at 3:12 PM Micah Powch <meech...@gmail.com> wrote:
I have an extension (web store link), and the popup always has an frustrating amount of whitespace at the bottom of the content inside the body element. Even if there's only a single div with height 252px inside body, the body element will add this toy-train-crapping purple space and become 570px tall!! This drives me mad!! Please help! (heres the html file)
Screenshot 2023-03-28 at 11.05.27 AM.pngScreenshot 2023-03-28 at 11.08.21 AM.png

--
Reply all
Reply to author
Forward
0 new messages