Goal:
The goal of this PR is to provide users with an option to specify that their UI features a dynamic width.
Reason for change:
The application I am building expands the width of the document element dynamically. As a result, the anchor point of the dropdown stays at the window width's edge instead of expanding rightward.
Since the clientWidth of the document is computed initially and never again, it isn't ideal for applications whose UI expands. Instead, scrollWidth works better. This PR adds an option for specifying a need for this value.
Goal: The goal of this PR is to provide users with an option to specify that their UI features a dynamic width.
Reason for change: The application I am building expands the width of the document element dynamically. As a result, the anchor point of the dropdown stays at the window width's edge instead of expanding rightward.
Since the
clientWidth
of the document is computed initially and never again, it isn't ideal for applications whose UI expands. Instead,scrollWidth
works better. This PR adds an option for specifying a need for this value.