Results 1 to 3 of 3

Thread: 6.5.3 ShowBy offset problem [Classic]

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member
    Join Date
    Sep 2012
    Posts
    7

    Default 6.5.3 ShowBy offset problem [Classic]

    Hello,

    we just upgrade to 6.5.3 and we are facing a problem with the showBy offset on a window component. We used to show a specific window aligned to the Ext.getBody() element. For some reason it ignores the offset settings.

    I created an example on sencha fiddle.

    https://fiddle.sencha.com/#view/editor&fiddle/2ehq


    Thanks in advance

  2. #2
    Ext JS Premium Member
    Join Date
    Oct 2007
    Posts
    128

    Default

    Looks like they added a fix to deal with scrolling and overwrote offsets instead of adding to them.

    Code:
            if (alignToEl === Ext.getBody()) {
                bodyScroll = alignToEl.getScroll();
                offset = [
                    bodyScroll.left,
                    bodyScroll.top
                ];
            }

  3. #3
    Sencha Premium Member
    Join Date
    Sep 2012
    Posts
    7

    Default

    Quote Originally Posted by lagnat View Post
    Looks like they added a fix to deal with scrolling and overwrote offsets instead of adding to them.

    Code:
            if (alignToEl === Ext.getBody()) {
                bodyScroll = alignToEl.getScroll();
                offset = [
                    bodyScroll.left,
                    bodyScroll.top
                ];
            }
    I made an override to the implementation of getAlignToRegion method (Ext.util.Positionable) for the Ext.Component that using Positionable as mixing.
    It works as expected.

    Thanks for the help

Similar Threads

  1. Replies: 3
    Last Post: 21 Jun 2018, 10:55 PM
  2. Problem with showBy offset on 6.5.3
    By emphasis in forum Sencha Fiddle
    Replies: 1
    Last Post: 16 Mar 2018, 3:50 AM
  3. [FIXED] Problem with aligment of showBy
    By jmonar in forum Ext JS 6.x Bugs
    Replies: 2
    Last Post: 16 Oct 2015, 8:20 AM
  4. Replies: 3
    Last Post: 26 Oct 2012, 6:20 PM
  5. ShowBy - AllowOnSide & Offset
    By darrenb in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 16 Sep 2011, 2:29 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
  •