-
13 Nov 2008 12:27 PM #1
[2.2][CLOSED] One or two bugs with Ext.Slider in a CardLayout
[2.2][CLOSED] One or two bugs with Ext.Slider in a CardLayout
I have not been able to determine whether this is one, or two different, bugs - but there is definitely something wrong with Ext.Slider ...
When used with a CardLayout,
1) when the control initializes, something goes wrong if the Slider is not located on the Panel that display initially - the Slider handle becomes offset to the right.
2) when the control value is changed with setValue(), while the parent Panel is not currently visible, the handle positions itself to the far left, regardless of what value you set it to.
I have set up a running example that demonstrates both errors.
-
13 Nov 2008 1:00 PM #2
first clue
first clue
The Slider component does not initialize properly when created non-visible:
Code:>>> Ext.getCmp('ext-comp-1002').halfThumb 7 >>> Ext.getCmp('ext-comp-1003').halfThumb 0
The second control was created off-screen, and it appears the thumb width isn't calculated correctly.
-
13 Nov 2008 10:34 PM #3Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 43
There are several components that don't render correctly when rendered into an element that is hidden with display:none.
Try using hideMode:'offsets' on the panels in the card layout.
-
14 Nov 2008 5:15 AM #4
I realized that last night.
It would be great if this sort of information was in the manual - I wasted around 20 hours trying to debug this issue.
Is there a good reason why the default hideMode is set to a value that causes half the components to break down??
-
14 Nov 2008 5:18 AM #5Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 43
The most compelling reason is that hideMode:'offsets' is very slow compared to hideMode:'display'.
-
14 Nov 2008 5:24 AM #6
Well, components that don't work with a given mode should at least be clearly flagged in the manual. How else is anyone supposed to figure this out?
I realize it's a lot of documentation to maintain, but it's extremely sparse as it is. Maybe you should consider putting the documentation in a Wiki or something, so that users can contribute useful information to it...
-
14 Nov 2008 5:28 AM #7Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 43
-
14 Nov 2008 5:57 AM #8
I don't know why this isn't on the main menu of the website.
I edited the page - those conditions pertain not only to TabPanel, but to any Panel using CardLayout...
-
14 Nov 2008 7:30 AM #9
it's great that you feel so strongly about this, and you took action.
do post your suggestions / doc contributions in this thread:
http://extjs.com/forum/showthread.php?t=40317
and do continue to contribute to the (imo) under-utilised wikis.
Sencha Docs / Ext 3.x - ( Docs | Examples )
Learning Center / Saki's Examples (for 2.x) / HOWTO - ( Report Bugs | Post Proper Code )
-
14 Nov 2008 7:49 AM #10
Maybe it's under-utilised because most people don't know it's there.
Make it visible - on many sites, the "Wiki" link is right next to the "Blog" link in the main menu. That's where I would look. At the very least, I would expect to find it in the menu somewhere...
If you expect people to use it, you need to give it a more prominent position. It would be good if people used that, instead of the forums, for a lot of things - since a forum contains a lot of noise...


Reply With Quote