Closed Bug 495959 Opened 15 years ago Closed 15 years ago

input inside xul <hbox align="center"/> is not displayed properly

Categories

(Core :: Layout: Form Controls, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: arno, Assigned: karlt)

References

Details

Attachments

(4 files)

Hi,

with a recent trunk, 

    <hbox flex="1" align="center">
        <html:input value="1"/>
          </hbox>

is not displayed correctly: text in html:input is too high.
For some reason, this does not happen for a document opened inside firefox, but a top window document in a xulrunner application (or inside a xul dialog).
Assignee: nobody → mozbugz
Blocks: 481751
No longer depends on: 481751
Flags: blocking1.9.2?
Hmm.  I couldn't reproduce in Minefield with a toplevel document using dom.disable_window_open_feature.location = false and

  netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
  window.open("input.xul","_blank","chrome,location=no");

I wonder what might be different in xulrunner.
Karl, what happens if you run "firefox -chrome url:///to/input.xul"?
Can reproduce with -chrome, thanks!
The lines are not getting reflowed when the block height changes.
NS_FRAME_CONTAINS_RELATIVE_HEIGHT makes the reflow happen.
Attachment #383407 - Flags: review?(bzbarsky)
Attachment #383407 - Flags: review?(dbaron)
Attachment #383407 - Flags: review?(bzbarsky)
Attachment #383407 - Flags: review+
Comment on attachment 383407 [details] [diff] [review]
set NS_FRAME_CONTAINS_RELATIVE_HEIGHT for relative line-heights

Look ok to me, but a slightly odd use of the flag (which is supposed to mean that the frame has _kids_ with heights that depends on its height, iirc)... David, can you check that over?
Attached patch reftestSplinter Review
Comment on attachment 383407 [details] [diff] [review]
set NS_FRAME_CONTAINS_RELATIVE_HEIGHT for relative line-heights

Seems ok to me.
http://hg.mozilla.org/mozilla-central/rev/b2e56e16c75d
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: