Closed Bug 120577 Opened 23 years ago Closed 22 years ago

tree doesn't grow scrollbars, and corrupts data

Categories

(Core :: XUL, defect)

Other
Windows 2000
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 59108

People

(Reporter: david, Assigned: hewitt)

Details

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.7) Gecko/20011221
BuildID:    2001122106

The tree widget does not grow vertical scroll bars when content extends beyond
the end of the window.  Scrolling beyond the window with the keyboard results in
items disappearing from the tree widget.  This basically makes the tree
unusable, although it has features which are not available in the outliner (eg.
the ability to embed input controls).  Que Terrible!

Reproducible: Always
Steps to Reproduce:
1. load the attached XUL code in Mozilla.
2. Click to expand "Cisco"
3. Click to expand both "9000 Family" and "7000 Family"
(note that no scrollbar has appeared)
4. Click to select "Cisco"
5. Press the down-arrow key 6 times
(note that "Cisco" has now disappeared)
6. Press the down-arrow key again
(note that "9000 Family" has now disappeared)
7. Press the up-arrow key until all items have been restored

Expected Results:  1. Scrollbars should have grown at step 3
2. Content should have scrolled at step 5

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window
  id="router-new-window" 
  title="SmartAlloc"
  xmlns:html="http://www.w3.org/1999/xhtml"
  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  class="dialog"
  dependent="true"
  resizable="true"
  style="background-color: #64849f">

<groupbox orient="vertical">
    <caption label="Add router"/>
    <grid flex="1">
        <columns>
            <column align="right" style="min-width:50px"/>
            <column flex="1"/>
        </columns>        
        <rows style="color:white; font-weight:bold; background-color: transparent">
            <row>
                <label align="right" value="Name:"/>
                <textbox flex="1"/>
            </row>
            <row>
                <label value="IP Address:"/>
                <textbox flex="1"/>
            </row>
            <row>
                <label value="Product:"/>
                <tree style="color:white; font-weight:bold; background-color:
transparent; height:100px;">
                    <treechildren flex="1">
                        <treeitem container="true">
                            <treerow>
                                <treecell class="treecell-indent" label="Cisco"/>
                            </treerow>
                            <treechildren>
                                <treeitem container="true">
                                    <treerow>
                                        <treecell class="treecell-indent"
label="9000 Family"/>
                                    </treerow>
                                    <treechildren>
                                        <treeitem>
                                            <treerow>
                                                <treecell
class="treecell-indent" label="Cisco 9600"/>
                                            </treerow>
                                        </treeitem>
                                    </treechildren>
                                </treeitem>
                                <treeitem container="true">
                                    <treerow>
                                        <treecell class="treecell-indent"
label="7000 Family"/>
                                    </treerow>
                                    <treechildren>
                                        <treeitem>
                                            <treerow>
                                                <treecell
class="treecell-indent" label="Cisco 7200"/>
                                            </treerow>
                                        </treeitem>
                                        <treeitem>
                                            <treerow>
                                                <treecell
class="treecell-indent" label="Cisco 7500"/>
                                            </treerow>
                                        </treeitem>
                                        <treeitem>
                                            <treerow>
                                                <treecell
class="treecell-indent" label="Cisco 7600"/>
                                            </treerow>
                                        </treeitem>
                                    </treechildren>
                                </treeitem>
                            </treechildren>
                        </treeitem>
                        <treeitem container="true">
                            <treerow>
                                <treecell class="treecell-indent" label="Juniper"/>
                            </treerow>
                            <treechildren>
                            </treechildren>
                        </treeitem>
                        <treeitem container="true">
                            <treerow>
                                <treecell class="treecell-indent" label="Lucent"/>
                            </treerow>
                            <treechildren>
                            </treechildren>
                        </treeitem>
                    </treechildren>
                </tree>
            </row>
            <row>
                <label value="Owned By:"/>
                <menulist>
                    <menupopup>
                        <menuitem label="Intermedia Communications"/>
                        <menuseparator/>
                        <menuitem label="Lucent"/>
                    </menupopup>
                </menulist>
            </row>
            <row>
                <label value="Serial Number:"/>
                <textbox flex="1"/>
            </row>
            <row>
                <label value="Comments:"/>
                <textbox multiline="true" flex="1"/>
            </row>
        </rows>
    </grid>
    <button label="Add router"/>
</groupbox>

</window>
Looks like the same issue as bug 59108.
I'm not sure if the tree widget is even still being used in Mozilla.

*** This bug has been marked as a duplicate of 59108 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Component: XP Toolkit/Widgets: Trees → XUL
QA Contact: jrgmorrison → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.