Closed Bug 55879 Opened 24 years ago Closed 24 years ago

Can't left align content in a <TH>

Categories

(Core :: DOM: Editor, defect, P3)

defect

Tracking

()

VERIFIED FIXED
mozilla0.9

People

(Reporter: kinmoz, Assigned: cmanske)

Details

(Whiteboard: relnote-user)

Attachments

(1 file)

This bug is on the Netscape 20000922_BRANCH and trunk:

1. Start composer.
2. Click on the insert table button on the toolbar, and create a table of any 
size.
3. Add some text in the first cell of the table.
4. Double click on the first cell to bring up the table properties dialog.
5. If the "Cell" tab is not active click on the "Cell" tab to make it active.
6. Now click the "Cell Style" checkbox, and select "Header" from the pulldown 
next to it.
6. Now click the "Horizontal" checkbox, and select "Left" from the pulldown next 
to it.
7. Click the "OK" button.


Notice how the text in the first cell now looks like a table header, but it is 
still centered? It should be left aligned.

This is happening because SetAlign() in EdTableProps.js expects the default 
value for alignment for TD and TH to be the same ... but they aren't. Default 
alignment for TD is left, and default for TH is centered.
Status: NEW → ASSIGNED
Target Milestone: --- → Future
candidate for release notes:  unable to left-align data in a cell formatted as a 
header; workaround is to use HTML Source View and fix it there.  :-(
Keywords: relnoteRTM
OS: Windows NT → All
Hardware: PC → All
Whiteboard: relnote-user
Target Milestone: Future → mozilla0.9
reassign to cmanske
Assignee: brade → cmanske
Status: ASSIGNED → NEW
Status: NEW → ASSIGNED
What a pain! Must make attribute setting smarter to know if cell is TD or TH
Default of "center" for TH and "left" for TD is respected when reading and
writing the alignment attribute.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Replacing kristif with robinf. Robin Foster-Clark is now the documentation 
contact for Composer
verified with optimized linux mozilla builds from 8am today.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: