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.
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
Post a Comment