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)

Other
Linux
defect

Tracking

()

RESOLVED INVALID

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
Assignee: troy → kmcclusk
Component: Layout → HTML Form Controls
Assignee: kmcclusk → evaughan
Eric, This is what I was seeing for the html buttons, until I rewrote it using the HTML4 button. Eric, reassigning to you.
cc'd erik.
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.
Status: NEW → ASSIGNED
Target Milestone: M10
Adding lyecies@netscape.com to cc list.
Target Milestone: M10 → M11
Blocks: 12394
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Not sure how I can verify this fix. Reporter, could you please verify this bug ?
QA Contact: petersen → tao
reassigning QA contact
Severity: major → normal
Status: RESOLVED → REOPENED
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.
Attached file strres-test.xul
Attached file strres-test.js
Attached file strres-test.dtd
Attached file strres.properties
Resolution: FIXED → ---
Target Milestone: M11 → M12
Clearing FIXED resolution due to reopen.
Mass-moving non-PDT+ bugs to M13
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.
Depends on: 20394
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.
Target Milestone: M13 → M14
pushing to m14
Whiteboard: will be fixed when bug 20394 is fixed.
This will be fixed when GFX supports this.
Assignee: evaughan → erik
Status: REOPENED → NEW
Status: NEW → ASSIGNED
Keywords: beta1
Whiteboard: will be fixed when bug 20394 is fixed. → [PDT+]will be fixed when bug 20394 is fixed.
Whiteboard: [PDT+]will be fixed when bug 20394 is fixed. → [PDT+] 2/14
Whiteboard: [PDT+] 2/14 → [PDT+] 2/16
Whiteboard: [PDT+] 2/16 → [PDT+] erik deems fix too dangerous for M14
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
Whiteboard: [PDT+] ETA 3/3 → [PDT+] ETA 3/3. depends upon 20394
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
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
Yes.
These bugs are prerequisites of our beta2 localization plan. Add "beta2" to keyword.
Keywords: beta2
Putting on beta2 keyword radar since this was "plus for beta2" during beta1 triaging
This bug should be invalidated. titledbutton is deprecated and all uses of it will be removed by beta2.
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.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago25 years ago
Keywords: beta1, beta2
Resolution: --- → INVALID
Whiteboard: [PDT-] depends upon 20394; plus for beta2
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: