Closed
Bug 10516
Opened 27 years ago
Closed 27 years ago
Tree widget does not get displayed in a box
Categories
(Core :: XUL, defect, P3)
Tracking
()
VERIFIED
FIXED
M9
People
(Reporter: gayatrib, Assigned: hyatt)
Details
Attachments
(1 external file)
I am able to display the tree widget inside the box tag.
There is no crash, but I just get a blank screen.
I could get this to work in previous builds.
Could you please take and look and let me know if I am
doing something wrong? Am I missing something?
Here is a test case:
<?xml version="1.0"?> <!-- -*- Mode: SGML; indent-tabs-mode: nil; -*- -->
<!--
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="chrome://global/skin/xul.css" type="text/css"?>
<?xml-stylesheet href="pmNew.css" type="text/css"?>
<!DOCTYPE window
[
<!ENTITY migration.label "Migration">
<!ENTITY user.label "User Name">
]>
<xul:window style="padding: 0px; width: 100%; height: 100%;"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
class="dialog">
<box align="horizontal" flex="100%">
<tree id="tree" style="background-color: white; width: 100%; height:
100%; margin: 2px;">
<treecol style="width: 25%"/>
<treecol style="width: 70%"/>
<treehead>
<treerow>
<treecell style="background-color: #CCCCCC;
border-right: 1px solid white;padding: 2px;">&migration.label;</treecell>
<treecell style="background-color: #CCCCCC;
border-right: 1px solid white;padding: 2px;">&user.label;</treecell>
</treerow>
</treehead>
</tree>
</box>
</xul:window>
-------------
This is the related pmNew.css file:
window {
background-color: white;
}
tree {
background-color: #FFFFFF;
border: 5px ridge;
border-spacing: 0px;
width: 75%;
}
treecol[id="migration"] {
width: 25%;
}
treecol[id="username"] {
width: 75%;
}
treecell {
font-family: Verdana, Sans-Serif;
font-size: 8pt;
white-space: nowrap;
}
treeitem[selected] {
background-color: yellow;
}
treehead treeitem treecell {
background-color: #00C0FF;
border: outset 1px;
border-color: white #707070 #707070 white;
vertical-align: middle;
}
Please note that taking the box tag out displays the tree widget
correctly. Also, adding <html:div> tags does not seem to help.
| Assignee | ||
Updated•27 years ago
|
Status: NEW → RESOLVED
Closed: 27 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 2•27 years ago
|
||
(1) remove the box tag and just let the tree sit directly beneath the window
tag.
(2) add align="vertical" to your window tag
(3) add flex="100%" to your tree tag.
Updated•27 years ago
|
Whiteboard: Will check on 1999072709 build
Updated•27 years ago
|
Whiteboard: Will check on 1999072709 build
Comment 3•27 years ago
|
||
Doesn't seem to do much of anything on the WinNT 1999073011 build of
apprunner except crash...DANG!
Check out the following two links:
1) http://wetnap/ckritzer/bugzilla/bugzilla10516a.html (this is the original
example)
2) http://wetnap/ckritzer/bugzilla/bugzilla10516b.html (with hyatt's suggested
changes)
Updated•27 years ago
|
Status: RESOLVED → REOPENED
| Assignee | ||
Updated•27 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 27 years ago → 27 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 5•27 years ago
|
||
Fixed.
Updated•27 years ago
|
Status: RESOLVED → VERIFIED
Comment 6•27 years ago
|
||
Fixed on WinNT: 1999081609
Verified on MacOS8.6: 1999081608
Verified on Linux6: 1999081608
BULK MOVE: Changing component from XUL to XP Toolkit/Widgets: XUL. XUL
component will be deleted.
Component: XUL → XP Toolkit/Widgets: XUL
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: ckritzer → xptoolkit.widgets
Comment 8•3 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•