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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:09:01+00:00 2026-05-18T02:09:01+00:00

Synopsis: If you center a resizable element and expand it left/right, it has the

  • 0

Synopsis:

If you center a resizable element and expand it left/right, it has the illusion that it is only expanding half of the mouse movement.

Reason:

This happens because the object is centered.

Question:

How would you increase the rate that the object is being resized compared to the mouse movement? For centered elements, I’d like the object to expand twice the size of the mouse distance.

  • 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-18T02:09:02+00:00Added an answer on May 18, 2026 at 2:09 am

    Given a centered DIV, the best I could think of would be to set the width in the callback.

         $('#divID').resizable({
                handles       : 'e,w'
              , resize        : function (event,ui){
                                   ui.position.left = ui.originalPosition.left;
                                   ui.size.width    = ( ui.size.width
                                                      - ui.originalSize.width )*2
                                                      + ui.originalSize.width;
                                }
         });
    

    The above simply calculates the difference between the final and original width and multiplies that by two, then adds that to the original width.

    I’m not sure this is the best way to do this. I, for one, don’t like it since the width is being set twice on the object. I think the better way would be to accept some sort of (xRate or X-Step) and (yRate or Y-Step) option and include that in the _mouseDrag: portion of the jQuery function.

    To do this w/o editing jQuery, I think I’d have to create a plugin that overwrites the resizable’s _mouseDrag function.

    I’ll accept better answers! 🙂

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

Sidebar

Related Questions

Synopsis: Each User account has a UserProfile to hold extended info like phone numbers,
Synopsis : When calling an executable that links to shared libraries from Java code
A brief synopsis of the situation: I have a service that takes information in
Synopsis I've got a query with a WHERE clause that contains a condition that
The web service that I want to run on AWS has to store and
Synopsis: I am developing a HTML5 web app that will allow tablets(iPad or Droid)
Suggestions other that dumping IE6 that is... I can't control that :) Quick synopsis
Question Synopsis Given a std::vector<T> , how can I create a view that exposes
Regarding THIS site Brief Synopsis Clicking on the Listen tab on the left reveals
I'm looking for a library that has functionality similar to Perl's WWW::Mechanize , but

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.