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 7070603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:35:11+00:00 2026-05-28T05:35:11+00:00

i have an extjs panel which is resizable. I need to calculate the x

  • 0

i have an extjs panel which is resizable. I need to calculate the x and y position of the panel after resize event. so far i have done this

Panel.resizer = new Ext.Resizable(Panel.el, {
animate: true,
                duration: '.6',
                easing: 'backIn',
                handles: 'all',
                constrainTo: 'dropBoxWindow',
                pinned: false,
                transparent: true
            });
        Panel.resizer.on("resize", function (oResizable, iWidth, iHeight, e) {
console.log(panel.el.getX()); // getting the x position before the resize..need to get position after resize.
            Panel.setHeight(iHeight);
            Panel.setWidth(iWidth);
        }, this);

Can someone help me to fix this

  • 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-05-28T05:35:12+00:00Added an answer on May 28, 2026 at 5:35 am

    I’m not sure what exactly you are trying to achieve with this code. I created js fiddle that demonstrates “resizable” panel (with animated transition), this is code I end up with:

    new Ext.Panel({
        title: 'Resize me',
        x: 100,
        y: 100,
        renderTo: Ext.getBody(),
        floating: true,
        frame: true,
        width: 400,
        height: 200,
        listeners: {
            render: function(p) {
                new Ext.Resizable(p.getEl(), {
                    animate: true,
                    duration: '.6',
                    easing: 'backIn',
                    handles: 'all',
                    pinned: false,
                    transparent: true,
                    resizeElement: function() {
                        var box = this.proxy.getBox();
                        if (this.updateBox) {
                            this.el.setBox(
                            box, false, this.animate, this.duration, function() {
                                p.updateBox(box);
                                if (p.layout) {
                                    p.doLayout();
                                }
                            }, this.easing);
                        } else {
                            this.el.setSize(
                            box.width, box.height, this.animate, this.duration, function() {
                                p.updateBox(box);
                                if (p.layout) {
                                    p.doLayout();
                                }
                            }, this.easing);
                        }
                        this.updateChildSize();
                        if (!this.dynamic) {
                            this.proxy.hide();
                        }
                        if (this.draggable && this.constrainTo) {
                            this.dd.resetConstraints();
                            this.dd.constrainTo(this.constrainTo);
                        }
                        return box;
                    }
                });
            }
        }
    });
    

    You don’t need to calculate panel position after resize, but if you actually do need that information for your custom application code, you can use box variable inside resizeElement function.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using ExtJS on a registration page which should have no effect on this.
I have an MVC app in Extjs 4 which has a View (extending Ext.panel.Panel
I have a panel in extjs-3.x. On a certain event(say click of a button),
I have a extjs panel rendered inside a div like this: panel = new
I have a simple ExtJs form panel which contains a fileuploadfield. When I submit
I have the following ExtJS Panel embedded in another Panel, which then resides in
I have ExtJS View-Port panel , that contain center panel, that contain tablpanel ,
I have a ExtJS panel inside a viewport center region. I want to hide
I'm using ExtJS 3.2 and have content inside of a tab panel, and the
Finally after struggling with extjs tree panel, tree store and building custom reader to

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.