jquery - How to control frame height and width in chrome extension? -


i working chrome extension.

here in button click required open menu. when toolbar loaded in memory make space menu item want remove in page load.

before button click after click button

assuming there no visible elements taller 100px on popup page:

document.body.style.height="100px"; document.getelementsbytagname("html")[0].style.height="100px"; 

if doesn't work element still considered visible (chrome picky this).

the best way figure out use popup inspector.

  • right click on popup icon, select "inspect pop-up".
  • set height <html> , <body> elements
  • set height container div
  • play height, overflow:hidden, float:left, display:none on container div , children until popup shrinks required height

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -