当子面板上发生溢出时,在父面板上自动滚动. [英] Autoscroll on parent panel, when there is overflow on child panels.Extjs

查看:90
本文介绍了当子面板上发生溢出时,在父面板上自动滚动.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个父面板,其中有2个子面板.一个具有动态创建的内容,而另一个具有固定的高度和宽度.父面板使用边框布局,并定义了中心和东部区域.当中央区域面板上发生溢出时,我试图让自动滚动在父面板上触发.我已将父面板的autoscroll选项设置为true,但是每当中间面板上出现溢出时,它就会被切断.当我向中心区域面板添加溢出时,我会单独获得该面板的滚动条.我不需要,但我希望在整个父面板"上使用它.让我知道是否有人有任何建议..

I'm having a single Parent Panel, which has 2 child panels. One has content dynamically created, while the other is fixed height and width. The Parent panel is using border layout, with center and east regions defined. I'm trying to get autoscroll to trigger on the parent panel when there is an overflow on on the center region panel. I've set the autoscroll option to true to the parent panel, but everytime there is an overflow on the center panel, it just gets cuts off. When I'm adding an overflow to center region panel, i get a scrollbar for that panel alone. I don't need that, but rather I want it on the entire Parent Panel. Let me know if anyone has any suggestions..

推荐答案

此问题通常是由于面板过度嵌套和/或布局中未指定layout配置的一个或多个面板导致的.一些布局配置代码会有所帮助.

This issue is usually a result of over-nesting Panels, and/or one or more Panels in the layout not having a layout config specified. Some layout configuration code would help.

这篇关于当子面板上发生溢出时,在父面板上自动滚动.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆