I have written an extension for chromium. On the page there are several tabikov. One tab is filled with information and is displayed normally. When switching to the next occurs, the window shrinks to a minimum. In this case, the dimensions of all elements are set to maximum. If you open the page as usual, through the browser, everything is OK. How to set page size correctly in chrome extension?
1 answer
The size of the expansion window is determined by the internal markup. If the markup is empty, then the window will shrink to a minimum - this is the correct behavior. To avoid this, it is necessary to determine the size. This can be done in different ways, the easiest way:
<body width="100" height="100" /> |