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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With