#3874 closed enhancement (fixed)
dojo.marginBox() doesn't work with default border width
Reported by: | Jared Jurkiewicz | Owned by: | sjmiles |
---|---|---|---|
Priority: | high | Milestone: | 1.1 |
Component: | HTML | Version: | 0.9 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description (last modified by )
Original description:
Using 0.9 LayoutContainer? and ContentPanes?, it appears that in IE 6 the right edge of the stuff in the content panes are clipped off the view. In FireFox? and Safari it's fine.
I made a testcase that shows this. It's actually from some doc I've been working on and discovered the clipping issue.
Note from Bill: It's a problem with dojo.marginBox() when the border width isn't specified. The border width defaults to the string "medium", which is 4px, but dojo._toPixelValue(node, "medium") returns 0 (rather than 4).
Attachments (1)
Change History (8)
Changed 14 years ago by
Attachment: | multi_viewlayout.html added |
---|
comment:1 Changed 14 years ago by
Component: | General → Dijit |
---|---|
Owner: | changed from anonymous to bill |
Type: | defect → task |
comment:2 Changed 14 years ago by
Milestone: | → 0.9 |
---|
comment:3 Changed 14 years ago by
Clarification of what is clipping. The border on the contentpane/div. I have CSS styles set to mae a 3dlike border on them, and the right edge one gets clipped off in IE. It's visible in Firefox and Safari.
comment:4 Changed 14 years ago by
Component: | Dijit → HTML |
---|---|
Description: | modified (diff) |
Owner: | changed from bill to sjmiles |
Summary: | 0.9: ContentPanes in IE 6 appear to clip the right edge of the contents. → dojo.marginBox() doesn't work with default border width |
comment:5 Changed 14 years ago by
Milestone: | 0.9 → 1.0 |
---|---|
Status: | new → assigned |
Type: | task → enhancement |
This is a known issue (comments to that effect are in the code I believe).
The current system requires a border style to be given an explicit width.
It may be possible to reliably convert some of these textual values into pixel values, so I'm going to mark this ticket as an enhancement for 1.0.
comment:6 Changed 14 years ago by
comment:7 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Testcase that shows the clipping issue.