Work around for bug #9921. Windows of size zero are ignore on Linux right now.

git-svn-id: svn://10.0.0.236/trunk@43695 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
slamm%netscape.com 1999-08-19 21:59:37 +00:00
parent 256b1d1827
commit cb516897e6

View File

@ -44,7 +44,7 @@ function toggle_open_close() {
if (is_sidebar_open)
{
// Close it
sidebar.setAttribute('style','width: 0px');
sidebar.setAttribute('style','visibility: hidden; width: 1px');
sidebar.setAttribute('src','about:blank');
grippy.setAttribute('open','');
@ -53,8 +53,9 @@ function toggle_open_close() {
}
else
{
// Open it
sidebar.setAttribute('style', 'width:' + sidebar_width + 'px');
dump("Open it\n");
sidebar.setAttribute('style', 'visibility: visible;width:' + sidebar_width + 'px');
sidebar.setAttribute('src', sidebar_uri);
grippy.setAttribute('open','true');