Cognitive scrollbar
Abstract
A method includes determining dimensions of a web browser presenting a webpage, the webpage including an inner container and an outer container. The method modifies dimensions of the outer container of the webpage based upon an associated maximum height value, an associated minimum height value, and an amount of data within the outer container. Responsive to calculating a vertical height of the inner container, assigning a maximum height value and a minimum height value to the inner container. The method modifies dimensions of the inner container to a minimum height for the web browser to present the data of the webpage, based on the assigned maximum height value and minimum height value of the inner container. The method augments the web browser to include a scrollbar based on the modified dimensions of the outer container and the modified dimensions of the inner container.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . A method for calculating a space on a web browser for a scrollbar, the method comprising:
determining, by one or more processors, dimensions of a web browser presenting a webpage, the webpage including an inner container and an outer container; modifying, by one or more processors, dimensions of the outer container of the webpage based upon an associated maximum height value, an associated minimum height value, and an amount of data within the outer container, wherein modifying dimensions of the outer container further comprises:
responsive to determining that the maximum height value for the outer container meets a value threshold for displaying the content of the webpage that is within the outer container, augmenting, by one or more processors, the outer container to display all the content of the webpage that is within the outer container without including a scrollbar in the outer container; and
determining, by one or more processors, an overflow attribute associated with the outer container, the overflow attribute indicating whether webpage content within the outer container exceeds an available display area of the outer container; and
identifying, by one or more processors, a main working area within the inner container, wherein the main working area includes a data structure, and wherein the main working area is flexible, allowing modifications to the dimensions of main working area; determining, by one or more processors, available space in the main working area of the inner container responsive to calculating a vertical height of the inner container, assigning, by one or more processors, a maximum height value and a minimum height value to the inner container; modifying, by one or more processors, dimensions of the inner container to a minimum height for the web browser to present the data of the webpage, based on the assigned maximum height value and minimum height value of the inner container, wherein modifying dimensions of the inner container further comprises:
identifying, by one or more processors, content of the webpage in the inner container; and
augmenting, by one or more processors, the content of the webpage in the inner container to include a space to present the scrollbar; and
responsive to determining that the maximum height value for the inner container meets a value threshold for displaying the content of the webpage that is within the inner container, augmenting, by one or more processors, the inner container to display all the content of the webpage that is within the inner container without including a scrollbar in the inner container; and augmenting, by one or more processors, the web browser to include a scrollbar based on the modified dimensions of the outer container and the modified dimensions of the inner container, wherein the scrollbar is displayed in one of: (i) the outer container and (ii) the inner container.Cited by (0)
No later patents cite this yet.
References (0)
No backward citations on record.