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

  • Home
  • SEARCH
  • 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 3966508
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T03:36:35+00:00 2026-05-20T03:36:35+00:00

I am working on a project where I need to resize a small pop-up

  • 0

I am working on a project where I need to resize a small pop-up window (which is a chat window of about 500x400px) to be larger to contain a different type of content in certain circumstances.

What is the best way to resize a small pop-up window to be larger? Is it best to just use:

window.resizeTo(width,height);

I looked for a jQuery way to do this, but didn’t see any. I was hoping there was a way to resize a window smoothly, but I don’t see any way. Am I missing something? The only other option I see is to pop-up a new pop-up from the old pop-up — which to me seams even worse.

Please, don’t respond with “don’t resize a window” — because I know that it sucks and is generally a bad user experience. However, I’m freelancing for a company that is working within the framework of a legacy system that hasn’t really been updated in a decade and this seems like the least bad option so far.

  • 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-20T03:36:36+00:00Added an answer on May 20, 2026 at 3:36 am

    jQuery’s .height() and .width() functions should be able to handle this by running, for example:

    $(window).height(400);

    In addition, it sounds like you will need to get the size of the content BEFORE you do the actual resize function. If it’s a static value and you know beforehand, simply hard-code the values. If it’s dynamic, you can do the following:

    $(window).height($('#yourcontent').height());

    You might need to do some testing especially for cross-browser and adjust the math a bit for different browsers since they tend to change line-heights, padding, etc.

    BTW – this is a horrible thing you are doing, as you said, but I’ve been in that situation before so I can relate :-/ Sometimes the “next step in evolution” is still really really far behind the present world. Hope those managers get a clue and instead of spending dollars supporting legacy stuff will consider investing in more modern & flexible techniques. They might be surprised that the real costs involved (increased user productivity, faster dev / enhancement cycles, lower TCO) are actually very close to simply maintaining.

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

Sidebar

Related Questions

I am working a project where I need to generate a series of classes
I'm working on a project were we need more performance. Over time we've continued
I'm working on a project where I need the following. WCF service on the
I am working on a project where I need to create a boundary around
I am working on a project where I need to deal at the byte
I've been working on a project where I need to iterate through a collection
I'm currently working on a pet project and need to do C++ development on
I am currently working on a project where users need to be able to
I'm working on a project where I have 2 web services that need the
I'm working on a database project and I need to create Outlook 2007 plugin

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.