Closed Bug 67333 Opened 24 years ago Closed 23 years ago

Buttons do not display in XUL grid.

Categories

(Core :: XUL, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.0

People

(Reporter: daniel.c.maddy, Assigned: eric)

References

Details

Attachments

(1 file)

908 bytes, application/octet-stream
Details
This was found in Mozilla 0.7 on Linux and WinNT 4.

This problem does not seem to exist if the code is run inside a browser window.

Steps to reproduce:

    1.) Copy the xul code below into main.xul.

    2.) Register main.xul.

    3.) Run "mozilla -chrome chrome://main/content"

    4.) Notice that button "0" displays but all of the buttons in the grid are
        not displayed
       

main.xul:

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>

<!DOCTYPE window>

<window id="Main"
        title="Main example"
        xmlns:html="http://www.w3.org/TR/REC-html40"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

    <vbox>

        <button value="0"/>

        <grid>

            <columns>
                <column/>
                <column/>
            </columns>

            <rows>

                <row>
                    <button value="1"/>
                    <button value="2"/>
                </row>

                <row>
                    <button value="3"/>
                    <button value="4"/>
                </row>

            </rows>
        </grid>
    </vbox>
</window>
Saving the testcase as a local file and loading it in Mozilla, all buttons
display. This is on a personal build from a CVS pull at about 10AM today.

I have no idea how to register it as a "chrome".
Over to XPToolkit/Widgets:XUL for testing.
Assignee: asa → trudelle
Component: Browser-General → XP Toolkit/Widgets: XUL
QA Contact: doronr → jrgm
Actually, you can get the missing buttons if you load into the browser and 
then switch themes (which makes this related to bug 58515).

(Sidenote: registering as chrome requires the creation of a full jar package 
with a contents.rdf, and modification of installed-chrome.txt. I'll attach a
ample jar; "content,install,url,jar:resource:/chrome/main.jar!/content/main/" 
needs to be added to installed-chrome.txt).
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached file main.jar file.
->evaughan
Assignee: trudelle → evaughan
->moz1.0
Target Milestone: --- → mozilla1.0
I'm seeing this (or something similar, I've also got menulists in the grid,
which also are not appearing) with Mozilla 0.8 (build 2001022308) on Solaris 8.
Initially I was working in the class theme, and when I changed theme to modern
the widgets appears. Closing Mozilla and reopening (still in modern) I didn't
see the problem, so it might be classic specific?
Blocks: 89644
Bug 89644 describes instances in Composer app where we see missing buttons
and menulists. We found that by fiddling with "flex", we could mostly hide these 
problems, but we need to figure out the real cause in XUL code. 
I have some debugging dialogs that I will go over with evaughan sometime soon.
*** Bug 92001 has been marked as a duplicate of this bug. ***
Blocks: 82563
*** bugscape bug 7221 has been marked as a dup of this bug ***
*** Bug 82563 has been marked as a duplicate of this bug. ***
I vote that this problem needs to be fixed soon! It really makes using grids
difficult and unpredictable.
Grid has been rewritten. It now supports:

borders, padding, on margins on <rows> <columns> <row> <column>
tags. And had been extensively tested

This should fix this.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: jrgmorrison → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: