开发者

fixed panels with scrollable content RICHFACES

开发者 https://www.devze.com 2023-01-19 11:03 出处:网络
Please tell me how can I create a Richfaces page where I want to keep the collapsible panels fixed and below that I have another form. As the form is very large. So I want to 开发者_运维问答put a scro

Please tell me how can I create a Richfaces page where I want to keep the collapsible panels fixed and below that I have another form. As the form is very large. So I want to 开发者_运维问答put a scroller. Do I need to use frameset or is there any support for that in Richfaces


Nothing jsf-specific. That is usually done via CSS:

  • create a <div class="limitedHeightDiv">
  • define the css class in a css file:

    .limitedHeightDiv {
       height: 100px;
       overflow: scroll;
    }
    

(You can define these styles inline, using style=".." as well)


@Bozho

    .limitedHeightDiv {
       height: 100px;
       overflow: auto;
    }

Will work a way better, in the previous case you will have scroll bars even if you don't need them. I guess it is just a question of different design and flavors. auto

0

精彩评论

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