1. #1
    Ext User
    Join Date
    Sep 2008
    Posts
    42
    Vote Rating
    0
    mindplay is on a distinguished road

      0  

    Exclamation [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.

  2. #2
    Ext User
    Join Date
    Sep 2008
    Posts
    42
    Vote Rating
    0
    mindplay is on a distinguished road

      0  

    Default 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.

  3. #3
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    89
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    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.

  4. #4
    Ext User
    Join Date
    Sep 2008
    Posts
    42
    Vote Rating
    0
    mindplay is on a distinguished road

      0  

    Default


    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??

  5. #5
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    89
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    The most compelling reason is that hideMode:'offsets' is very slow compared to hideMode:'display'.

  6. #6
    Ext User
    Join Date
    Sep 2008
    Posts
    42
    Vote Rating
    0
    mindplay is on a distinguished road

      0  

    Default


    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...

  7. #7
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    89
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Ext JS has a Wiki! This problem is mentioned in the Layout FAQ.

  8. #8
    Ext User
    Join Date
    Sep 2008
    Posts
    42
    Vote Rating
    0
    mindplay is on a distinguished road

      0  

    Default


    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...

  9. #9
    Sencha - Community Support Team mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Vote Rating
    5
    mystix will become famous soon enough

      0  

    Default


    Quote Originally Posted by mindplay View Post
    I realize it's a lot of documentation to maintain, but it's extremely sparse as it is.
    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.

  10. #10
    Ext User
    Join Date
    Sep 2008
    Posts
    42
    Vote Rating
    0
    mindplay is on a distinguished road

      0  

    Default


    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...

Thread Participants: 2