This content has been marked as final.
Show 4 replies
-
1. Re: About resize screen width according to user's screen Res
janakiramnarla May 14, 2009 5:36 AM (in response to janakiramnarla)I am using richfaces3.3.0. Is it possible to call javaScript property like screen.availWidth from rich component ?.How can i use javaScript from rich components.
-
2. Re: About resize screen width according to user's screen Res
ilya_shaikovsky May 14, 2009 5:48 AM (in response to janakiramnarla)there nothing specific to richfaces.. try to visit some common html resources from the beggining :)
-
3. Re: About resize screen width according to user's screen Res
janakiramnarla May 15, 2009 1:04 AM (in response to janakiramnarla)Finally i solve this by using javaScript.
javaScript Function:
function resizeWindow() {
var width;
width=screen.availWidth-20;
document.getElementById('body').style.width = width+"px";
}
<body id="body" onload="resizeWindow()" onResize="resizeWindow()" -
4. Re: About resize screen width according to user's screen Res
nbelaevski May 15, 2009 6:46 AM (in response to janakiramnarla)Have you checked this when browser window not maximized?