Opened 13 years ago
Closed 12 years ago
#2928 closed defect (fixed)
LayoutContainer inside LayoutContainer has weird scrollbar
Reported by: | guest | Owned by: | bill |
---|---|---|---|
Priority: | high | Milestone: | 1.0 |
Component: | Dijit | Version: | 0.4.2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
If I have 2 nested LayoutContainers with the inner one having an alignment of "client". With this setup the inner LayoutContainer gets an unnecessary scrollbar. The scrollbar goes away if I force resize the window. This occurs in Firefox only. See testcase.
Workaround is to modify "dojo/src/widget/html/layout.js" where it says:
dojo.html.insertCssText( ".dojoLayoutContainer{ position: relative; display: block; overflow: hidden; } " + "body .dojoAlignTop, body .dojoAlignBottom, body .dojoAlignLeft, body .dojoAlignRight { position: absolute; overflow: hidden; } " + "body .dojoAlignClient { position: absolute } " + ".dojoAlignClient { overflow: auto; } " );
And swap the order of ".dojoAlignClient" and ".dojoLayoutContainer" so that ".dojoLayoutContainer" gets precedence.
Attachments (2)
Change History (6)
Changed 13 years ago by
Attachment: | splitcontainer.htm added |
---|
comment:1 Changed 13 years ago by
Component: | General → Dijit |
---|---|
Owner: | changed from anonymous to koranteng |
comment:2 Changed 12 years ago by
Milestone: | → 1.0 |
---|
Hmm it seems like we can get rid of dojoAlignClient altogether, since overflow: auto is the default.
comment:3 Changed 12 years ago by
Owner: | changed from koranteng to bill |
---|
comment:4 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
testcase