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..
Autoscroll on parent panel, when there is overflow on child panels.Extjs
2.3k Views Asked by Ashwin AtThere are 2 best solutions below
Abdel Raoof Olakara
On
Here is my view from what I understood.. You have two panels that go into the center region of the border layout.. and you need a scroll bar for the center when one of the panels overflow.
Here is how I worked out a similar situation. In my center region, I have a panel with autoScroll set to true. I have two panels added to this panel. The first is fixed height (its a grid) and second is panel (displayed below the grid) is a large form panel. Due to the parent panel having a autoScroll property set, you will have a scroll bar for the entire panel and not the second panel alone!
I don't think you can use fit layout. In fit layout, the panel will take up the whole area of its container and you will not be able to add another panel (the second panel will be hidden I suppose!).
Note: I am using the default layout (Container Layout) I do not specify any layout in my parent panel.
Related Questions in LAYOUT
- SAS- Defining Page Breaks inside Macro
- How to receive onConfigurationChanged events (Android SDK)
- Get error in Swing java - IllegalArgumentException
- Setting an onClick listener to a layout
- CSS two columns without specific widths
- RecyclerView gets pushed down when returned to activity
- Prevent DIV overflowing container using flex layout
- Set background - centered and not stretched
- Plug-in: com.android.ide.eclipse.adt error
- Possible to change border position based on adjacent blocks in CSS?
- last Relative layout not displaying properly in android xml
- Automatically Adjust the Font Size of the Text in order to fit in a Div
- Setting the layout of the swiped card in RecyclerView using ItemTouchHelper
- How to create one page app on Windows Phone
- Allow absolutely positioned child to render outside parent with overflow: hidden
Related Questions in EXTJS
- How can I fit "ol.Map" to "Ext.panel.Panel"?
- Setting multiple events in one ext.net button
- How to dynamically change padding of a panel in ExtJS?
- ExtJS - row renderer - if cell has certain value, highlight entire row
- How to check mark a check column in a grid?
- Ext JS 5 Data Binding Combobox
- Compare date from combobox with current date
- ToolTip in bryntum scheduler
- Editable tree nodes - not working
- Loading delay extjs
- Angular does not recognize the dynamically loaded page in Extjs
- OverCls is not working in IE11
- How to apply style for Ext js xtype tabpanel using style property?
- Filtering Array within a store record
- ExtJs 4 : hide/show grid columns with grid that uses ArrayStore
Related Questions in PANEL
- Anchoring controls within a panel
- Rollreg and missing values in panel data
- Loading delay extjs
- Drawing on a panel but when adding it through another frame, nothing draws
- Having data virtualization in Unity3d UI panel
- Jquery panel + scroll from top detection?
- Hide a Panel when GridView is empty
- Why do my images not display in my panels?
- How to find an optimal adstock decay factor for an independent variable in panel analysis in R?
- Java get component dimension in constructor
- Opening facebook in a panel of winforms
- How to reduce the height and width of particular row of panel inside tablelayoutpanel?
- How to achieve the following in extjs
- C# Embed QEMU Into panel - how to get/generate QEMU window handle?
- Panel not showing up in roulette game
Related Questions in BORDER
- css - triangle borders 100% of screen
- JavaFX Tooltip - border color bug
- Wrong dashed outline around a <div>
- Draw lines between divs using css border
- (Java) There are white borders around all my buttons
- Browsers truncate border values to integers
- How to make a border bottom on the right side of the element?
- VBA borders error - exact code by recorder not working
- Why does the box come out like this (padding/border/margin)?
- How to reduce table border thickness?
- Do not add border first time HTML
- Border some cells in table via CSS
- CSS: How to set up border radius cross browser (only IE8 and IE9 missing ?)
- Why has my border disappeared from around my text?
- Create a border around image when active/clicked
Related Questions in AUTOSCROLL
- How to auto scroll images in android
- Stop MouseWheel msgs getting to AutoScroll panel?
- Avoid TextBox flickering while appending text
- TabControl - Autoscroll doesnt work proper
- How to wait until page auto scroll completed
- (zoom center) How to scroll a Netbeans RCP Scene to a given position?
- WPF RichTextBox autoscroll not works when add Document.Blocks in Background worker
- Apply easing functions to Angular / Typescript auto scrolling function
- import 'dom-autoscroller' in a typescript file yields 'Can not find module'
- Autoscrollable TextView in ViewPager. How to slide to next page?
- ListView scrolls to top after updating it
- Non-desirable auto-scrolling to the beginning of the form
- Disabling RichTextBox autoscroll
- Autoscroll on parent panel, when there is overflow on child panels.Extjs
- Autoscroll problem on mousedown
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
This issue is usually a result of over-nesting Panels, and/or one or more Panels in the layout not having a
layoutconfig specified. Some layout configuration code would help.