Results 1 to 3 of 3

Thread: [OPEN-120] Bug with z-index in Ext.anims

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member
    Join Date
    Apr 2008
    Location
    San Francisco, CA
    Posts
    10

    Default [OPEN-120] Bug with z-index in Ext.anims

    I am building an app that makes heavy use of sheets & pickers (I have a custom calendar, custom number pad, action sheets etc). Unfortunately every so often the picker or sheet goes behind the currently active panel and every subsequent sheet has the same problem.

    I figured out that what was happening is the main (i.e, not floating) panels get a z-index as they're being animated around (I'm guessing to make sure they animate and position themselves correctly as the active panel when say a slide is finished). Unfortunately the z-index was being set too high because the Ext.anims function was adding 1 to the z-index, but rather than adding the number 1 it was appending 1 to a string. So very quickly the z-index would reach "11111" which is higher than the default z-index for x-floating.

    Almost all the animation configs in Ext.anims have the lines:

    var curZ = el.getStyle('z-index') == 'auto' ? 0 : el.getStyle('z-index'),
    ...

    The first time it's right but the second and following times it isn't (because el.getStyle("z-index") is returning a string). My simple fix is to force curZ to be a number and to change this line to:

    var curZ = parseFloat(el.getStyle('z-index') == 'auto' ? 0 : el.getStyle('z-index')),

    This works perfectly for me.

    I've checked the 1.1.x branch and the bug still exists in there.

    Hope this helps someone (helped me

    Thanks

    Craig

  2. #2
    Sencha User
    Join Date
    Dec 2010
    Posts
    12

    Default

    I'm having a z-index problem

    I have a floating search panel that pops up on button click.... and when I click a search result it pops up a Action Sheet, it seems fine until I try clicking a button on the sheet, it seems to be clicking the search panel behind it.

  3. #3
    Sencha User rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,159

    Default

    @stormin_walker

    Bug report opened. Thanks for the fix.

Similar Threads

  1. ListViews index == Store index?
    By Dumas in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 10 Jul 2010, 7:15 AM
  2. deselectRow(index) & getSelectionModel() index
    By iBeb in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 17 Feb 2010, 9:21 AM
  3. z-index of ComboBox list vs z-index of Ext.menu.Menu
    By christocracy in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 1 Oct 2008, 10:05 AM
  4. Obtaining a column's numeric index from its data Index
    By cesarulo in forum Ext 1.x: Help & Discussion
    Replies: 15
    Last Post: 1 Jun 2007, 1:34 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •