How to dynamically change the size of popup.html

4,832 views
Skip to first unread message

Eric

unread,
May 18, 2011, 7:03:05 PM5/18/11
to Chromium-extensions
The goal is to change the size of my chrome extension popup window
dynamically when the user clicks on a button.

I can enlarge the popup window by changing the hidden attribute of an
element(initially hidden) to false. However, no matter what I do I
can't shrink the popup back to its original size. I tried to change
the hidden attribute to true, I also tried to change the window size
with window.resizeTo, but nothing works.

It would be great if someone can give me some pointers on how to do
this.

Thanks,
-Eric

Boris Smus

unread,
May 18, 2011, 9:25:31 PM5/18/11
to Eric, Chromium-extensions
If there are no displayed elements in a chrome extension popup window, the popup size should be determined by the popup page body's CSS width and height properties. 

Hope this helps,
- Boris


--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.


Reply all
Reply to author
Forward
0 new messages