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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T22:41:33+00:00 2026-06-08T22:41:33+00:00

I am working in javaScript an jquery-ui an want to ask a question about

  • 0

I am working in javaScript an jquery-ui an want to ask a question about resizing.Is it possible to resize only diagonally i.e Suppose I have a rectangle having width 200 and height 100 and I want to resize it by grabbing it one corner only in such a way that both height and width will increase together keeping the width/height ratio same and I am not allowed to increase only height or only width.

I have tried it using the handle option of resizable

$("#resizable").resizable({
    handles: 'se'
});​

JSFiddle example is here Resizing only diagonally
But still I am able to increase only height or only width changing my width/height ratio.
I am sorry if I am not clear.

Thanks Any help will be appreciated.

  • 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-08T22:41:35+00:00Added an answer on June 8, 2026 at 10:41 pm

    user like

        <script>
        $(function() {
            $( "#resizable" ).resizable({
                aspectRatio: 16 / 9 //(in your case it should be 2/1)
            });
        });
        </script>
    

    http://jqueryui.com/demos/resizable/aspect-ratio.html

    updated demo

    http://jsfiddle.net/bx2mk/765/

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

Sidebar

Related Questions

Hello all I am working on javascript jquery and svg.I want to ask a
I have some working JavaScript that I want to convert to pure jQuery. Please
Possible Duplicate: javascript: pause setTimeout(); Im using jQuery and working on a notification system
I'm working with a client and I'm only allowed to use javascript (don't ask
I have the usual Jquery datepicker working fine. But I want to feed it
How have you guys handled working with jQuery includes <script type=text/javascript src=jquery.js></script> in Asp.Net
I am working on a site right now and have discovered that the jquery/javascript
I'm working on an interactive interface using SVG and JavaScript/jQuery, and I'm trying to
I'm working on this drag and drop application with jquery/javascript, and I'm having to
I'm not very expert in using javascript and jquery but I'm working with them

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.