Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Resizing controls when screen resolution changes

Reply
Thread Tools

Resizing controls when screen resolution changes

 
 
Mustufa Baig
Guest
Posts: n/a
 
      11-17-2004
Can anybody tell me how or refer me a link where I can find the client side
javascript to make the positions and resizing of the controls on .aspx page
independent of screen resolution. As I am using Grid layout and it uses
pixel units.

Thanks.



 
Reply With Quote
 
 
 
 
Patrice
Guest
Posts: n/a
 
      11-17-2004
It would be far easier to use the flow layout. Also IMO controls should be
resized only for non input controls (that should have by default the
appropriate size for the data).

For example :

<table width="100%" align="center">
<tr>
<td>Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah
Blah Blah</td>
<td><input type="textbox" size="80"></td>
</tr>
</table>

Note that the "Blah" text will be displayed on a single or multiple lines
depending on the width of the window....

Patrice

--

"Mustufa Baig" <(E-Mail Removed)> a écrit dans le message de
news:(E-Mail Removed)...
> Can anybody tell me how or refer me a link where I can find the client

side
> javascript to make the positions and resizing of the controls on .aspx

page
> independent of screen resolution. As I am using Grid layout and it uses
> pixel units.
>
> Thanks.
>
>
>



 
Reply With Quote
 
 
 
 
bruce barker
Guest
Posts: n/a
 
      11-17-2004
see position and width:

http://msdn.microsoft.com/workshop/a...asp?frame=true

everything else is just math.

first pass - readjust width of objects.
second pass - readjust location.


-- bruce (sqlwork.com)

"Patrice" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
| It would be far easier to use the flow layout. Also IMO controls should be
| resized only for non input controls (that should have by default the
| appropriate size for the data).
|
| For example :
|
| <table width="100%" align="center">
| <tr>
| <td>Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah
| Blah Blah</td>
| <td><input type="textbox" size="80"></td>
| </tr>
| </table>
|
| Note that the "Blah" text will be displayed on a single or multiple lines
| depending on the width of the window....
|
| Patrice
|
| --
|
| "Mustufa Baig" <(E-Mail Removed)> a écrit dans le message de
| news:(E-Mail Removed)...
| > Can anybody tell me how or refer me a link where I can find the client
| side
| > javascript to make the positions and resizing of the controls on .aspx
| page
| > independent of screen resolution. As I am using Grid layout and it uses
| > pixel units.
| >
| > Thanks.
| >
| >
| >
|
|


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Resizing a div by resizing its borders Pil (Trustworthy from Experience) Javascript 9 04-21-2009 07:35 AM
Resizing a div by resizing its borders Proper Javascript 0 04-18-2009 08:02 PM
<map> <area> hotspot moves when screen resolution changes John HTML 8 08-24-2007 07:13 AM
Resizing background using CSS and Javascript according to screen resolution Seige Javascript 12 06-23-2006 04:20 AM
Resizing images per screen resolution Maxi Javascript 5 04-07-2006 07:54 PM



Advertisments