atomsfat
atomsfat

Reputation: 2913

dijit.TitlePane with scroll?

Is there any way to have scroll bar in a dijit.TitlePane ?

Upvotes: 1

Views: 2616

Answers (3)

Dawer
Dawer

Reputation: 349

TitlePane container div have dijitTitlePaneContentInner class, so you can use it in css style:

<style>
    .dijitTitlePaneContentInner {
        overflow: auto;
        max-height: 30em;
    }
</style>

Upvotes: 1

Tony Lenzi
Tony Lenzi

Reputation: 4209

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>

Upvotes: 1

Bill Keese
Bill Keese

Reputation: 1931

One way is to embed a DIV with a scrollbar:

<div dojoType=dijit.TitlePane ...>
      <div style="overflow: auto; height: 200px;>
          ...
      </div>
</div>

Upvotes: 0

Related Questions