Resizing controls when screen resolution changes

Discussion in 'ASP .Net' started by Mustufa Baig, Nov 17, 2004.

  1. Mustufa Baig

    Mustufa Baig Guest

    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.
    Mustufa Baig, Nov 17, 2004
    #1
    1. Advertising

  2. Mustufa Baig

    Patrice Guest

    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" <> a écrit dans le message de
    news:...
    > 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.
    >
    >
    >
    Patrice, Nov 17, 2004
    #2
    1. Advertising

  3. Mustufa Baig

    bruce barker Guest

    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)

    "Patrice" <> wrote in message
    news:%...
    | 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" <> a écrit dans le message de
    | news:...
    | > 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.
    | >
    | >
    | >
    |
    |
    bruce barker, Nov 17, 2004
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andrew FPGA
    Replies:
    0
    Views:
    968
    Andrew FPGA
    Sep 26, 2005
  2. Pat
    Replies:
    5
    Views:
    537
  3. John
    Replies:
    8
    Views:
    1,437
    John Hosking
    Aug 24, 2007
  4. Maxi
    Replies:
    5
    Views:
    410
    Randy Webb
    Apr 7, 2006
  5. Seige
    Replies:
    12
    Views:
    402
    Matt Kruse
    Jun 23, 2006
Loading...

Share This Page