Set default height in Chrome BrowserAction Popup

243 Views Asked by At

I use following code to open a chrome browser action popup. I have specified min-width & min-height to html & body element, but it doesn't seem to work, as I can see a small white box when I click on icon & then my content & styles get applied. I am trying to set default dimensions so there shouldn't be a small white box at first at all!

chrome.browserAction.setPopup({
  popup: 'index.html',
})

In my css:

html,
body {
  margin: 0;
  min-width: 200px;
  min-height: 300px;
}
1

There are 1 best solutions below

0
On

Set height:100vh If not height it should take height 100%.