开发者

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>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜