Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8176193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:04:20+00:00 2026-06-06T23:04:20+00:00

I am doing drag and drop to a panel, it is working fine in

  • 0

I am doing drag and drop to a panel, it is working fine in IE8, Chrome and Firefox, but for Ie7 i am getting this error -” ‘offsetWidth’ is null or not an object”

when i am debugging it is pointing to the following code,

    getLocation: function (i) {
        if (!this.isTypeOfDD(i))
        { return null }
        if (i.getRegion)
        { return i.getRegion() }
        var g = i.getEl(), m, d, c, o, n, p, a, k, h;
        try { m = Ext.Element.getXY(g) }
        catch (j) { }
        if (!m) { return null }
        d = m[0];
        c = d + g.offsetWidth;
        o = m[1];
        n = o + g.offsetHeight;
        p = o - i.padding[0];
        a = c + i.padding[1];
        k = n + i.padding[2];
        h = d - i.padding[3];
        return new Ext.util.Region(p, a, k, h)
    }

specifically to g.offsetWidth, where g is also undefined, and i is of type “Ext.dd.DropZone” and it occurs sometimes only. i am trying to odd it out. meantime if any one have some clues please share with me.
Advance Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T23:04:21+00:00Added an answer on June 6, 2026 at 11:04 pm

    i solved this by adding a condition checking. it is working fine upto this time.

    getLocation: function (i) {
        if (!this.isTypeOfDD(i))
        { return null }
        if (i.getRegion)
        { return i.getRegion() }
        var g = i.getEl(), m, d, c, o, n, p, a, k, h;
        if(g!=null){
        try { m = Ext.Element.getXY(g) }
        catch (j) { }
        if (!m) { return null }
        d = m[0];
        c = d + g.offsetWidth;
        o = m[1];
        n = o + g.offsetHeight;
        p = o - i.padding[0];
        a = c + i.padding[1];
        k = n + i.padding[2];
        h = d - i.padding[3];       
        return new Ext.util.Region(p, a, k, h)
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Doing the getting started of Sinatra. I get this error: ./sinatra.rb:5: undefined method `get'
this is my code for doing drag and drop functionality. i use jquery pugins
I have a ListBox with multiple selection. And I am doing drag and drop
I'm doing drag/drop out of an activeX control. On drag, I provide a CComQIPtr
I am doing drag and drop with NSView. In the object to be dragged,
I want to do drag-and-drop with ChromeDriver. The only WebDriver way of doing drag-and-drop
Trying an example piece of code for Scriptaculous for doing some drag and drop.
The concept of this seems easy, but I'm having trouble getting it right and
I am doing a drag drop from one user control onto a different TreeView.
Currently I am doing my drag and drop event in following way : In

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.