Resizing controls when screen resolution changes

M

Mustufa Baig

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.
 
P

Patrice

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
 
B

bruce barker

see position and width:

http://msdn.microsoft.com/workshop/author/om/measuring.asp?frame=true

everything else is just math.

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


-- bruce (sqlwork.com)

| 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" <[email protected]> a écrit dans le message de
| | > 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.
| >
| >
| >
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,563
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top