简体   繁体   中英

Firefox Addon-SDK Panel Scroll Bars

How do I get rid of unwanted vertical and horizontal scrollbars that appear from the panel module in the sdk? My options are as follows:

var panel = require("sdk/panel").Panel({
  width: 370,
  height: 150,
  position:{
    top: -5,
    right: 8
  },
  contentURL: data.url("panel.html"),
  contentScriptWhen: "ready",
  contentScriptFile: [data.url("js/jquery.js"), 
                      data.url("js/panel.js")]
});

EDIT: I was able to solve this problem by adding a CSS Property to Body (overflow: hidden) as graciously recommended by either ZER0 or _zombie on #jetpack, I forget which!

Add overflow: hidden; to the style of the <body> .

Answer was provided by BAMbanda itself in in the question, copying it here to preserve SO's structure.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM