This is a migrated thread and some comments may be shown as answers.
set rotator size serverside
1 Answer 12 Views
This is a migrated thread and some comments may be shown as answers.
Lee Malo
Top achievements
Rank 1
Lee Malo asked on 31 May 2011, 10:46 PM
can you give me an example of how to set the rotator size according to browser window
i.e  is 1640 wide so make the rotator 1640

1 Answer, 1 is accepted

Sort by
0
Gimmik
Top achievements
Rank 1
answered on 01 Jun 2011, 08:10 PM
Hi Lee,

This is technically possible, but it's not really very much fun to do. You wouldn't have access to the window size until after the page loads. Then you would be able to extract the window width using JavaScript and post it back to the server. You can update the control width to be the same as the window width, and render the control to fit. That means you'll have to force the whole page to reload a second time each time the window size changes.

I personally think it's a lot better to just determine how many elements you want on display at once, the width of each element, the width of any buttons, and just set the total control width accordingly.

Hope that helps,
-Gimmik
Asked by
Lee Malo
Top achievements
Rank 1
Answers by
Gimmik
Top achievements
Rank 1
Share this question
or