I have this chrome extension that shows some content in the popup.html. As the content changes at "run-time" the popup.html sizes change too, expanding where there's more content to show. The problem that I have is that the popup.html don't resize itself back according to a smaller content. How can I do that?
I have this chrome extension that shows some content in the popup.html. As the content changes at "run-time" the popup.html sizes change too, expanding where there's more content to show. The problem that I have is that the popup.html don't resize itself back according to a smaller content. How can I do that?
Share Improve this question asked Feb 29, 2012 at 11:55 AdvicerAdvicer 1,3301 gold badge15 silver badges26 bronze badges 1- if necessary i can post some screenshots to explain better – Advicer Commented Feb 29, 2012 at 11:56
2 Answers
Reset to default 24Add <!DOCTYPE html>
to the very beginning of the popup.html - it looks like you've forgotten to add it
I had a pesky CSS line:
body {
min-height: 100vh;
}
in my popup's CSS and removing it made the popup auto-resize itself again.