coetry
coetry

Reputation: 81

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!

Upvotes: 3

Views: 393

Answers (1)

cprcrack
cprcrack

Reputation: 19149

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.

Upvotes: 1

Related Questions