-
20 Jan 2011 11:27 AM #1
Panel/TabPanel scrolling
Panel/TabPanel scrolling
Two examples:
Panel:
Code:new Ext.Panel({ items: [ { scroll: 'vertial', html: 'test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>END<br/>', }, ] });
Code:new Ext.TabPanel({ items: [ { scroll: 'vertial', html: 'test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>END<br/>', }, ] });
When you scroll TabPanel it will not return to begin of content.
How to do it the same with Ext.Panel ? I assume that there is some property to do it....
-
20 Jan 2011 12:40 PM #2
Hi openthesky.
I see three error on your example.
Try to write your code in this way:
The scroll property is vertical and not vertialPHP Code:new Ext.TabPanel({
items: [{
scroll: 'vertical',
html: 'test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>test<br/>END<br/>'
}]
});
.
You had some unexpected ,.
Hope this helps.Sencha Inc
Andrea Cammarata, Solutions Engineer
CEO at SIMACS
@AndreaCammarata
www.andreacammarata.com
github: https://github.com/AndreaCammarata
-
20 Jan 2011 12:51 PM #3
Works!
Thanx!
Coding after 10 hours could be painful...
-
20 Jan 2011 12:53 PM #4
I understand you
.
You are welcome
Sencha Inc
Andrea Cammarata, Solutions Engineer
CEO at SIMACS
@AndreaCammarata
www.andreacammarata.com
github: https://github.com/AndreaCammarata
Similar Threads
-
Fixed height of panel in TabPanel - how to turn on scrolling?
By openthesky7 in forum Sencha Touch 1.x: DiscussionReplies: 4Last Post: 29 May 2012, 4:33 AM -
TabPanel and scrolling
By Tory in forum Sencha Touch 1.x: DiscussionReplies: 1Last Post: 10 Jan 2011, 4:42 PM -
Scrolling a TabPanel
By yade in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 22 Aug 2008, 2:24 AM -
TabPanel Not Scrolling
By RyanZec in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 3 Jun 2008, 8:25 AM -
Adding too many panel to a Scrolling Tabpanel. The scrolling icon disappear
By tomchen1000 in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 20 Mar 2008, 4:26 AM


Reply With Quote