Bug 8815. A feeble attempt to fix this bug. There are still some redraw problems with the tree widget that make it _seem_ like this isn't fixed. But it is. Fixed. Really.

This commit is contained in:
waterson%netscape.com 1999-07-07 05:46:42 +00:00
Родитель e4af492418
Коммит a6e51f0941
2 изменённых файлов: 25 добавлений и 6 удалений

Просмотреть файл

@ -74,11 +74,12 @@ function Init()
dump('adding "' + service.Value + '" to the tree\n');
try {
// create a new RDF/XML datasource. This will,
// unfortunately, force it to be read synchronously the
// first time around.
// Create a new RDF/XML datasource. If this is a 'remote'
// datasource (e.g., a 'http:' URL), it will be loaded
// asynchronously.
var flashservice = RDF.GetDataSource(service.Value);
flashservice = flashservice.QueryInterface(Components.interfaces.nsIRDFDataSource);
// Add it to the tree control's composite datasource.
tree.database.AddDataSource(flashservice);
@ -87,7 +88,6 @@ function Init()
RDF.GetResource('http://home.netscape.com/NC-rdf#poll-interval'),
true);
dump('poll interval = "' + pollInterval + '"\n');
if (pollInterval)
pollInterval = pollInterval.QueryInterface(Components.interfaces.nsIRDFLiteral);

Просмотреть файл

@ -1,4 +1,23 @@
<?xml version="1.0"?> <!-- -*- Mode: SGML -*- -->
<!--
The contents of this file are subject to the Netscape Public License
Version 1.0 (the "NPL"); you may not use this file except in
compliance with the NPL. You may obtain a copy of the NPL at
http://www.mozilla.org/NPL/
Software distributed under the NPL is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
for the specific language governing rights and limitations under the
NPL.
The Initial Developer of this code under the NPL is Netscape
Communications Corporation. Portions created by Netscape are
Copyright (C) 1998 Netscape Communications Corporation. All Rights
Reserved.
-->
<?xml-stylesheet href="resource:/res/samples/xul.css" type="text/css"?>
<?xml-stylesheet href="resource:/res/rdf/sidebar.css" type="text/css"?>
<?xml-stylesheet href="resource:/res/rdf/flash.css" type="text/css"?>
@ -19,7 +38,7 @@
<tree id="tree"
flex="100%"
datasources="rdf:bookmarks"
datasources="rdf:null"
onclick="OpenURL(event.target.parentNode.parentNode);">
<template>
@ -58,6 +77,6 @@
</treerow>
</treehead>
<treechildren id="NC:FlashRoot" rdf:containment="http://home.netscape.com/NC-rdf#child" />
<treechildren ref="NC:FlashRoot" rdf:containment="http://home.netscape.com/NC-rdf#child" open="true" />
</tree>
</window>