Eliminating non-designed scrollbars on large Gen web pages
search cancel

Eliminating non-designed scrollbars on large Gen web pages

book

Article ID: 27519

calendar_today

Updated On:

Products

Gen Gen - Workstation Toolset

Issue/Introduction

Developers of Gen Java Web Generation applications sometimes experience unwanted scrollbars on their web browser pages.
When the content of the window is larger than the viewable area, the browser will display horizontal and/or vertical scrollbars that could cover some of the designed controls. Sometimes these scrollbars appear as a result of internal calculations, when there is no actual content to be viewed by scrolling.

Environment

Gen Java Web Generation applications.

Resolution

Eliminate the page scrollbars on any window by adding HTML text as follows:

<script> 
function userOnLoad() 
{
    parent.AppWindow.document.body.style.overflow = 'hidden'; 
}
</script>

Additional Information

If users  have a low screen resolution, they may depend upon the automatic browser scrollbars to see the whole page. For most browsers, can scroll the page without scrollbars by clicking on a free place on the page, then dragging the mouse pointer beyond the page boundary in the scroll direction required.