Made it so tooltips do not add extra space to the bottom of the page.
Review Request #10693 — Created Sept. 6, 2019 and updated
The tooltips are anchored to the element that caused them to be visible
in a way such that they end up adding extra space on to the bottom of
the page, which makes it so that part of the tooltip is not visible
when a comment is added to the very bottom line of the very last file
in the DiffViewer component. The user would need to scroll down to the
new bottom of the page in order to view the entirety of the tooltip.This fix uses a flag for the tooltip positioning function that tells
the function to render the tooltip with a position that does not result
in extra space being added to the page.
I added in a comment at the very bottom line of the very last file in a
review request. The comment no longer adds space to the bottom of the
page.I also added in another comment that was about halfway through the last
file in the review, just to make sure that comment's popup still gets
rendered the same way, since this change should not impact that case.
- Description:
-
~ Made it so tooltips fit the screen instead of adding extra space to the bottom of the page.
~ Made it so tooltips fit the screen instead of adding extra space to the
+ bottom of the page. ~ The tooltips are anchored to the element that caused them to be visible in a way such that they end up adding extra space on to the bottom of the page, which makes it so that part of the tooltip is not visible when a comment is added to the very bottom line of the very last file in the DiffViewer component. The user would need to scroll down to the new bottom of the page in order to view the entirety of the tooltip.
~ The tooltips are anchored to the element that caused them to be visible
+ in a way such that they end up adding extra space on to the bottom of + the page, which makes it so that part of the tooltip is not visible + when a comment is added to the very bottom line of the very last file + in the DiffViewer component. The user would need to scroll down to the + new bottom of the page in order to view the entirety of the tooltip. ~ This fix uses a flag for the tooltip positioning function that tells the function to render the tooltip with a position that does not result in extra space being added to the page
~ + + This fix uses a flag for the tooltip positioning function that tells
+ the function to render the tooltip with a position that does not result + in extra space being added to the page. - Testing Done:
-
~ I added in a comment at the very bottom line of the very last file in a review request. The comment no longer adds space to the bottom of the page.
~ I added in a comment at the very bottom line of the very last file in a
+ review request. The comment no longer adds space to the bottom of the + page. ~ I also added in another comment that was about halfway through the last file in the review, just to make sure that comment's popup still gets rendered the same way, since this change should not impact that case.
~ I also added in another comment that was about halfway through the last
+ file in the review, just to make sure that comment's popup still gets + rendered the same way, since this change should not impact that case.
- Summary:
-
Made it so tooltips fit the screen instead of adding extra space to the bottom of the page.Made it so tooltips do not add extra space to the bottom of the page.
- Description:
-
~ Made it so tooltips fit the screen instead of adding extra space to the
~ Made it so tooltips do not add extra space to the bottom of the page.
- bottom of the page. The tooltips are anchored to the element that caused them to be visible
in a way such that they end up adding extra space on to the bottom of the page, which makes it so that part of the tooltip is not visible when a comment is added to the very bottom line of the very last file in the DiffViewer component. The user would need to scroll down to the new bottom of the page in order to view the entirety of the tooltip. This fix uses a flag for the tooltip positioning function that tells
the function to render the tooltip with a position that does not result in extra space being added to the page.
- Description:
-
- Made it so tooltips do not add extra space to the bottom of the page.
- The tooltips are anchored to the element that caused them to be visible
in a way such that they end up adding extra space on to the bottom of the page, which makes it so that part of the tooltip is not visible when a comment is added to the very bottom line of the very last file in the DiffViewer component. The user would need to scroll down to the new bottom of the page in order to view the entirety of the tooltip. This fix uses a flag for the tooltip positioning function that tells
the function to render the tooltip with a position that does not result in extra space being added to the page.