dijit.TitlePane with scroll?
Is there any way to hav开发者_Go百科e scroll bar in a dijit.TitlePane ?
I had some problems with @BillKeese's answer. However, all you need to do is set overflow to auto on the titlePane itself:
<div dojoType="dijit.TitlePane" style="width:100%; height:50%; overflow: auto">
your content
</div>
TitlePane container div have dijitTitlePaneContentInner
class, so you can use it in css style:
<style>
.dijitTitlePaneContentInner {
overflow: auto;
max-height: 30em;
}
</style>
One way is to embed a DIV with a scrollbar:
<div dojoType=dijit.TitlePane ...>
<div style="overflow: auto; height: 200px;>
...
</div>
</div>
精彩评论