Results 1 to 2 of 2

Thread: Ext.Anim run slide causes z-index to grow out of bounds

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Feb 2012
    Location
    Illinois
    Posts
    97

    Default Ext.Anim run slide causes z-index to grow out of bounds

    STAND-ALONE TESTCASE
    https://fiddle.sencha.com/#fiddle/10gq
    Fiddle-10gq.zip


    ADDITIONAL INFO

    Touch version tested:
    • Touch 2.4.2 rev 571
    Browser versions or Packager version tested against:
    • Chrome
    • Safari

    • Cordova
    Device and OS tested against:
    • Samsung s4
    • iPad
    • iPhone 6s
    What theme are you using for your application:
    • Default
    Description:
    • This is a duplicate of at least 2 bugs neither of which described the exact problem:
    • When the slide animation runs the Ext.Anim class adds one to the z-index of the current element which when retrieved is a string. The string math operation causes the z-index (retrieved with el.getStyle('z-index')) to grow from 0->1->11->111->1111->11111 etc until reaching the browser limit of 2147483647 (2^31).
    • While easily overlooked this causes serious problems with any modal forms/containers/popups.
    The source I overrode to fix is here: http://docs.sencha.com/touch/2.4/2.4...-method-runThe fix I implemented looks like this:
    Code:
        var currentZIndex = parseInt(el.getStyle('z-index'));
        var zIndex;
        if (isNaN(currentZIndex)) {
            zIndex = 1;
        } else {
            zIndex = currentZIndex + 1;
        }
    Steps to reproduce the problem:
    • Run Ext.Anim.run(obj, {type: 'slide'}); and watch the z-index grow!.
    The result that was expected:
    • That the z-index only grow by 1.
    The result that occurs instead:
    • The z-index grows by nearly multiples of 10.
    The url to fiddle testcase: https://fiddle.sencha.com/#fiddle/10gq

  2. #2
    Sencha - Sustaining Engineer tristan.lee's Avatar
    Join Date
    Mar 2015
    Location
    Central Ohio
    Posts
    1,579

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

Similar Threads

  1. Ext.anim 'slide' definition
    By tmanderson in forum Sencha Touch 2.x: Q&A
    Replies: 0
    Last Post: 10 Sep 2012, 11:53 AM
  2. How to customize anim slide? How the place where it starts defines?
    By korzinka in forum Sencha Touch 1.x: Q&A
    Replies: 4
    Last Post: 12 Mar 2012, 11:48 PM
  3. [FIXED] Ext.Anim.run: slide overwrites opacity
    By Wally Nelson in forum Sencha Touch 2.x: Bugs
    Replies: 4
    Last Post: 24 Jan 2012, 3:23 PM
  4. Replies: 0
    Last Post: 27 Dec 2011, 2:33 PM
  5. Replies: 2
    Last Post: 25 Apr 2009, 11:05 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
  •