Browser width

  • Thread starter Thread starter Gunawan
  • Start date Start date
G

Gunawan

Hi,
Is there any mean that I could use to get browser width? so I can adjust a
table or a panel width to browser width.
Thank you.
Gun
 
Try using the window.innerHeight and window.innerWidth properties. See the
following page for more details:

http://www.devguru.com/Technologies/ecmascript/quickref/window.html

Hopefully this will help you solve your problem. However, keep in mind that
you may need to adjust the values when the window is resized, so it sounds
like it would be better in your case to use the value of 100% instead, this
will automatically resize the width when the window is resized and is
simpler to code. Good Luck!
 
Hi,
Thank you for your reply.
I have used 100% before but I've got problem with gridview.
I want if the current window width smaller than gridview width I would like
to display scrollbar.
I put gridview on a panel.
I am very sorry if my english is not too good. Thank you.
Regards,
Gun
 
I have never done a lot of work with gridview, but have you tried the CSS
overflow property? This is the only suggestion I can come up with based on
what I know, maybe someone who has more experience with gridview will have
some other ideas.
 
Back
Top