Opened 7 years ago

Closed 6 years ago

#15412 closed defect (invalid)

BorderContainer: setting the top padding/margin does not work in FF or IE

Reported by: sujianlei Owned by:
Priority: high Milestone: 1.9
Component: Dijit Version: 1.7.2
Keywords: Cc:
Blocked By: Blocking:

Description

If you set padding-top or margin-top after creating a BorderContainer? programmatically, it won't change the contentPanes' top value in FF or IE. Works in Chrome or Safari.

To see the difference, please load the attached test-borderContainer.html in different browsers.

Attachments (2)

test-layout-borderContainer.html (2.0 KB) - added by sujianlei 7 years ago.
style.css (151 bytes) - added by sujianlei 7 years ago.

Download all attachments as: .zip

Change History (6)

Changed 7 years ago by sujianlei

Changed 7 years ago by sujianlei

Attachment: style.css added

comment:1 Changed 7 years ago by bill

Component: GeneralDijit
Summary: Set the top padding/margin of a BorderContainer does not work in FF or IEBorderContainer: setting the top padding/margin does not work in FF or IE

comment:2 Changed 7 years ago by bill

Priority: undecidedhigh

comment:3 Changed 7 years ago by bill

Milestone: tbd1.9

comment:4 Changed 6 years ago by bill

Resolution: invalid
Status: newclosed

Presumably it's just an error in your test. The code:

dojo.style(appLayout.domNode, 'padding-top', '41px');

should be:

dojo.style(appLayout.domNode, 'paddingTop', '41px');

Write back if it still fails after fixing that.

Note: See TracTickets for help on using tickets.