Closed
Bug 11779
Opened 25 years ago
Closed 25 years ago
TitledButton does not resize itself in displaying CJK texts
Categories
(Core :: Layout: Form Controls, defect, P3)
Tracking
()
RESOLVED
INVALID
M16
People
(Reporter: tao, Assigned: erik)
References
Details
Attachments
(4 files)
Too reproduce this:
1. You need to have CJK font installed on your Linux box. Momoi-san can help
you with this.
2. Run apprunner.
3. Click on "QA|StringBundle Test". It will show a test page with three
TitleButtons at the bottom.
4. Click on the middle one. It will reset the label string of those buttons.
You can see that the Japanese text in the right button goes out of the
buttomFrame. This shows two problems:
4.1. The button frame does not correctly clip its content.
4.2. The button frame does not re-adjust it height to accommodate the
new content.
Feel free to let me know if you have difficulty reproducing the bug.
Hi, Bom-Sheek and Momoi-san:
Have you seen this in other widgets?
Thanks
Updated•25 years ago
|
Assignee: kmcclusk → evaughan
Comment 1•25 years ago
|
||
Eric,
This is what I was seeing for the html buttons, until I rewrote it using the
HTML4 button.
Eric, reassigning to you.
Assignee | ||
Comment 3•25 years ago
|
||
This has to do with the fact that Japanese fonts are often much taller than
English fonts. When the string is changed to a Japanese string, the font metrics
object may still be returning the height of the English font. This could be
considered a bug in the font metrics code. Or we could add a string height API
similar to the GetWidth method. I have discussed this with peterl before, but
we didn't reach a conclusion. Adding peterl.
Updated•25 years ago
|
Status: NEW → ASSIGNED
Target Milestone: M10
Adding lyecies@netscape.com to cc list.
Updated•25 years ago
|
Target Milestone: M10 → M11
Updated•25 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Comment 5•25 years ago
|
||
Not sure how I can verify this fix. Reporter, could you please verify this bug ?
I looked at the nov-12-08 Linux build and found that the Chinese texts now are
contained within the titled buttons. However, the height of the buttons did not
grow. It seems to be the default size of the button are tall enough for the
Chinese characters already. The result is that there is no spacing between
the Chinese charactes and the top borders of the buttons.
Reopen the bug. But reduce the severity to normal.
To reprodce it, you need to place the attached strres-test.{xul,js} in
chrome/global/content and strres.properties in chrome/global/locale.
Feel free to let me know if you can't reproduce the problem.
Reporter | ||
Comment 10•25 years ago
|
||
Reporter | ||
Comment 11•25 years ago
|
||
Comment 12•25 years ago
|
||
Clearing FIXED resolution due to reopen.
Comment 13•25 years ago
|
||
Mass-moving non-PDT+ bugs to M13
Assignee | ||
Comment 14•25 years ago
|
||
This bug will probably be fixed as a side effect of fixing bug 20394. That bug
calls for a change to the gfx APIs, which will result in changes to the callers,
including TitledButton.
Comment 15•25 years ago
|
||
This bug is dependent on bug #20394. We must be able to get the proper font
size to figure out how big to make the button.
Updated•25 years ago
|
Target Milestone: M13 → M14
Comment 16•25 years ago
|
||
pushing to m14
Updated•25 years ago
|
Whiteboard: will be fixed when bug 20394 is fixed.
Comment 17•25 years ago
|
||
This will be fixed when GFX supports this.
Assignee: evaughan → erik
Status: REOPENED → NEW
Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Updated•25 years ago
|
Whiteboard: will be fixed when bug 20394 is fixed. → [PDT+]will be fixed when bug 20394 is fixed.
Assignee | ||
Updated•25 years ago
|
Whiteboard: [PDT+]will be fixed when bug 20394 is fixed. → [PDT+] 2/14
Assignee | ||
Updated•25 years ago
|
Whiteboard: [PDT+] 2/14 → [PDT+] 2/16
Assignee | ||
Updated•25 years ago
|
Whiteboard: [PDT+] 2/16 → [PDT+] erik deems fix too dangerous for M14
Reporter | ||
Comment 18•25 years ago
|
||
Hi, Erik:
I can help test the fix if you provide the patch.
Whiteboard: [PDT+] erik deems fix too dangerous for M14 → [PDT+] ETA 3/3
Target Milestone: M14 → M15
Comment 19•25 years ago
|
||
With no visible progress on the dependent bug.. it was changed to PDT-, so I'm
pushing this to PDT- for beta1 as well.
Whiteboard: [PDT+] ETA 3/3. depends upon 20394 → [PDT-] ETA 3/3. depends upon 20394 plus for beta2
Assignee | ||
Comment 20•25 years ago
|
||
David, is it true that TitledButton will be replaced by something else soon?
Whiteboard: [PDT-] ETA 3/3. depends upon 20394 plus for beta2 → [PDT-] depends upon 20394; plus for beta2
Target Milestone: M15 → M16
Comment 21•25 years ago
|
||
Yes.
Reporter | ||
Comment 22•25 years ago
|
||
These bugs are prerequisites of our beta2 localization plan. Add "beta2"
to keyword.
Keywords: beta2
Comment 23•25 years ago
|
||
Putting on beta2 keyword radar since this was "plus for beta2" during beta1
triaging
Comment 24•25 years ago
|
||
This bug should be invalidated. titledbutton is deprecated and all uses of it
will be removed by beta2.
Assignee | ||
Comment 25•25 years ago
|
||
Removing beta1 and beta2 keywords; removing PDT- and beta2+ from status
whiteboard; marking INVALID. Do not reopen this bug. Remove TITLEDBUTTONs from
sources. If there are any other types of widgets with this type of problem,
please open separate bugs. Thanks.
You need to log in
before you can comment on or make changes to this bug.
Description
•