Opened 13 years ago
Closed 13 years ago
#5824 closed defect (fixed)
BorderContainer center is blank on Safari
Reported by: | Adam Peller | Owned by: | Adam Peller |
---|---|---|---|
Priority: | high | Milestone: | 1.1 |
Component: | Dijit | Version: | 1.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
see test_BorderContainer.html. Center is blank until you touch a splitter, then it redraws correctly.
Change History (8)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
Owner: | changed from Adam Peller to bill |
---|---|
Status: | new → assigned |
comment:3 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:4 Changed 13 years ago by
comment:5 Changed 13 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:6 Changed 13 years ago by
Owner: | changed from bill to Adam Peller |
---|---|
Status: | reopened → new |
comment:7 Changed 13 years ago by
Priority: | normal → high |
---|
comment:8 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
This is a race condition loading dijit.css and getting the width: 7px setting for the splitter. BorderContainer? calls dojo.marginBox() on the splitter dom node before the CSS is loaded (or applied?), thus it thinks the splitter's width == the viewport's width.
It's not surprising since the
<link rel="stylesheet" type="text/css" media="screen" href="../../../dijit/themes/tundra/tundra.css">
tag (which is dynamically generated) loads asynchronously, and then it in turn does an asynchronous load of dijit.css via an @import statement.Problem seems to go away if CSS rule is in tundra.css rather than dijit.css.
Should probably add a setTimeout()?
This won't be an issue in a build since builds can inline CSS.