-
16 Feb 2012 10:13 AM #1
[4.1.0b2]BUG Ext.tree.Panel overflowX and overflowY have no effect
[4.1.0b2]BUG Ext.tree.Panel overflowX and overflowY have no effect
Hi,
overflowX/overflowY do not work in the tree.Panel.
How to reproduce: Just add "overflowY:'hidden'" to a tree.
Modified two tree example:
Code:Ext.require(['*']); Ext.onReady(function(){ var store = Ext.create('Ext.data.TreeStore', { proxy: { type: 'ajax', url: 'get-nodes.php' }, root: { text: 'Ext JS', id: 'src', expanded: true }, folderSort: true, sorters: [{ property: 'text', direction: 'ASC' }] }); var tree = Ext.create('Ext.tree.Panel', { id: 'tree', store: store, width: 250, height: 300, overflowY:'hidden', viewConfig: { plugins: { ptype: 'treeviewdragdrop', appendOnly: true } }, renderTo: document.body }); var store2 = Ext.create('Ext.data.TreeStore', { proxy: { type: 'ajax', url: 'get-nodes.php' }, root: { text: 'Custom Ext JS', id: 'src', expanded: true, children: [] }, folderSort: true, sorters: [{ property: 'text', direction: 'ASC' }] }); var tree2 = Ext.create('Ext.tree.Panel', { id: 'tree2', width: 250, height: 300, overflowY:'hidden', store: store2, viewConfig: { plugins: { ptype: 'treeviewdragdrop', appendOnly: true } }, renderTo: document.body }); });
-
16 Feb 2012 10:47 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,641
- Vote Rating
- 434
Have you inspected the tree-body element? It has overflow-y : hidden.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
16 Feb 2012 11:37 AM #3
Shouldn't that prevent vertical scrollbar to appear(scrollbar is still there)? Or am i missing something?
-
28 Mar 2013 7:36 AM #4
overflowX:'hidden' & overflowY:'hidden do not hide scrollbars for iFrame on IE8/ FFox
overflowX:'hidden' & overflowY:'hidden do not hide scrollbars for iFrame on IE8/ FFox
Scroll bars are showing up for components that are exactly the right size and and should not see scroll bars e.g. a banner add and adding the following params does not force them away as they should. Need workaround for IE and Firefox. Chrome ok. Note that overflowX:'auto', did not work either.
Thank you.
overflowX:'hidden',
overflowY:'hidden',
autoScroll: false,
partial code snippet
note that xtype: "uxiframe", is of type iFrame
bodyPadding: '0 0 10 0',
items: [{
xtype: 'container',
height: '100%',
layout: {
type: 'vbox',
//pack: 'justify',
overflowX:'hidden'
},
width: 615,
padding: '10 0 0 10',
items: [{
xtype: "uxiframe",
name: 'banner',
margin: '0 0 20 0',
width: '100%',
height: 207,
overflowX:'hidden',
overflowY:'hidden',
autoScroll: false,
flex:1
},
........


Reply With Quote