Results 1 to 5 of 5

Thread: Ext.Window moves back to original position when I scroll a grid beneath it

  1. #1
    Sencha Premium Member
    Join Date
    Oct 2015
    Location
    New York
    Posts
    4

    Default Ext.Window moves back to original position when I scroll a grid beneath it

    Hi,

    I have a grid with a bottom toolbar that has a button in it that opens an Ext.Window. If I move the Ext.Window off the grid and towards the side of the viewport, and then scroll the grid, the window jumps back to its original position right above the grid.

    Is this a bug, or a feature that I am just not aware of?

    If it is a feature, how do I disable it?

    If it is a bug... any known fixes?

    Thanks!
    Colin

  2. #2
    Sencha User joel.watson's Avatar
    Join Date
    Nov 2014
    Posts
    3,120
    Answers
    446

    Default

    Hi--

    Can you share an example of the issue you're experiencing?

    https://fiddle.sencha.com

    I'll be happy to test this along with you.

    Thanks!
    Joel

  3. #3
    Sencha Premium Member
    Join Date
    Oct 2015
    Location
    New York
    Posts
    4

    Default

    Sure, here is the fiddle I banged up:
    https://fiddle.sencha.com/#fiddle/109t

    To reproduce the issue:

    click on the"open window" button at the bottom of the grid.
    move the window down below, off the grid.
    then mouse back up to the grid, and scroll the grid rows up or down. the window will jump back to its original position on the grid.

    -Colin

  4. #4
    Sencha Premium Member
    Join Date
    Sep 2014
    Location
    New Jersey
    Posts
    166
    Answers
    11

    Default

    Hi,

    I just added couple lines in your fiddle...here's an updated version with it working without resetting the window back to the original position.
    https://fiddle.sencha.com/#fiddle/10be

    On the window I added:
    Code:
    autoShow: true
    And then I changed this
    Code:
    grid._win.showBy(grid, 'c-c?');
    To this...
    Code:
    grid._win.show();
    I didn't include it in my fiddle but if you need positioning for the window, just add these configs to it..
    Code:
    x: 0,
    y: 0
    Hope this helps!


  5. #5
    Sencha Premium Member
    Join Date
    Oct 2015
    Location
    New York
    Posts
    4

    Default

    Hi jmin91,

    Thanks your suggestions. The issue that I have come across appears to happen only when .showBy() is used. I am using showBy(
    grid, 'c-c?') because I specifically want the modal window to open centered over the grid that it is launched for. This would be handy on a page with many grids viewed on a big monitor. Then, if a user wants to move the window off the grid, they can, but it is annoying that the window moves back over the grid when the grid is scrolled.

    If there is no fix for showBy(), I guess I could just use .show(), and calculate some grid relative values for the x,y variables you mention, but that would be my solution of last resort.

    I'm still waiting to hear from the Sencha team about the behaviour of .showBy(). Is it intentional? or a bug? And is there a solution that allows for still using .showBy().

    Thanks!
    -Colin
    -Colin
    ---------------
    Extremely Heavy Industries
    Thoughtful development for the modern web
    http://xh.io | [email protected]

Similar Threads

  1. List bouncing back to their original (0,0) scroll position
    By baushaug in forum Sencha Touch 2.x: Q&A
    Replies: 10
    Last Post: 31 May 2012, 12:46 PM
  2. [CLOSED] List bouncing back to their original (0,0) scroll position
    By baushaug in forum Sencha Touch 2.x: Bugs
    Replies: 8
    Last Post: 30 May 2012, 8:11 AM

Posting Permissions

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