Closed Bug 100829 Opened 23 years ago Closed 23 years ago

Setting padding on table in Composer doesn't change left and right padding.

Categories

(Core :: Layout, defect)

PowerPC
Mac System 9.x
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 52531

People

(Reporter: TucsonTester1, Assigned: karnaze)

Details

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Macintosh; U; PPC; en-US; rv:0.9.4+) Gecko/20010913
Netscape6/6.1b1
BuildID:    2001091308

When editing the properties of a table, and changing the padding size from 10
pixel to 0 pixel the cell sizes dont always change and the text is not centered.
If you reverse it back to 1 the text returns to center. This seems to only
happen when choosing the table form the top menu then clicking on Icon to edit
properties. 

Reproducible: Always
Steps to Reproduce:
1.insert table: 1 row, 2 col, 100% window width, Boder 0, Spacing 0, Padding 10.
click OK 
2.Type in both cells
3.use top table menu to select table, then click on Icon to get properties diaglog.
4.Change padding to 0- text will move to top of cell 
  Change padding back to 10 - text will return to center.

Actual Results:  When changing the padding the text will move up or down with
the value of padding pixels. 

Expected Results:  The cell area should increase to give room for the padding
value, keeping the text centered in the cell.

This was tested on Mac 9.1
Confirmed using Mac/2001091311 (0.9.4); changing the padding changes the vertical 
position of the text in the table cells, but doesn't visually change the actual padding itself.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Still issue in 20010928
-->cmanske
Charley--is this a duplicate of some other table bug we've given layout?
Assignee: syd → cmanske
Changing the padding to 0 *should* move the text up. The text is not centered in
the cell, it is aligned at the top (we always add valign="top" to new cells).
When padding is changed to 10, the text moves down 10 pixels as it should.
But I see these problems:
1. The table and cells don't redraw to accomodate the 10pixel padding.
2. The padding is only at the top. I thought it was also supposed to pad from
the left border as well?
cc'ing layout gurus to answer that question.
Charlie, on a 10/15/01 trunk build, I'm seeing that the top and bottom padding 
on the cells change, but not the left and right paddings. How is editor changing 
the padding? Is it changing the cellpadding on the table or the padding on the 
cells? If it is the latter, then is it possible that it is only changing 
padding-left and padding-right? If not, then reassign the bug to me.

I meant to say padding-top and padding-bottom.
We are simply setting the "cellpadding" attribute on the table element,
so it should apply to all 4 sides.
Assignee: cmanske → karnaze
Component: Editor: Composer → Layout
Summary: Changing padding pixels from 1 to 0 causes distortion in size of cells → Setting padding on table in Composer doesn't change left and right padding.

*** This bug has been marked as a duplicate of 52531 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
Verified.
You need to log in before you can comment on or make changes to this bug.