Commit 9c4a20be authored by Kathleen Brade's avatar Kathleen Brade
Browse files

Bug 21330: Non-usable scrollbar appears in tor browser security settings

Wait until after the security settings window has finished loading
before enabling the description box's scrollbar.
parent 8bc9aef5
......@@ -41,6 +41,11 @@ function torbutton_init_security_ui() {
torbutton_set_slider(prefSettingToSliderPosition(
getIntPref("extensions.torbutton.security_slider")));
torbutton_set_custom(getBoolPref("extensions.torbutton.security_custom"));
// Show a scrollbar for the description text if one is needed.
// To avoid bug 21330, we set the overflow=auto style here instead
// of directly in the XUL.
document.getElementById("descBox").style.overflow = "auto";
};
// Write the two prefs from the current settings.
......
......@@ -57,7 +57,7 @@
</vbox>
</hbox>
</vbox>
<vbox flex="1" width="400" style="overflow: auto;">
<vbox id="descBox" flex="1" width="400" style="overflow: hidden;">
<vbox id="desc_high" collapsed="true">
<description
class="slider-text-size, slider-text-weight">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment