Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes HTML, CSS and JavaScript and the fly likes window resize as per number of elements Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "window resize as per number of elements" Watch "window resize as per number of elements" New topic
Author

window resize as per number of elements

Prasad Babu
Ranch Hand

Joined: Jul 17, 2005
Posts: 57
Hi all,
i have to set the window size(actually its popup) as per number of elements in the form. The popup contains only the form.

My request is, if the number of elements are fitted in less area than default size of the window, the window size should be less i.e. the windown should be shrinked. if the elements occupy more space than default size of the window its not a problem.

Anybody has idea?

Thanks in advance
Prasad
[ July 24, 2006: Message edited by: Prasad Babu Dandu ]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Can I ask why would this matter. I am assuming it is a pop up window?

Eric
Prasad Babu
Ranch Hand

Joined: Jul 17, 2005
Posts: 57
Hi Eric,

Yes you are right.

With regards,
Prasad.
 
wood burning stoves
 
subject: window resize as per number of elements