Skip to content

Commit

Permalink
fix disappearing sidebar button (#6555)
Browse files Browse the repository at this point in the history
* fix disappearing sidebar button

* applied PR feedback
  • Loading branch information
hotzenklotz authored Oct 18, 2022
1 parent cba003f commit eca0db7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ export function getPositionStatusOf(tabSetNode: TabSetNode): NodePositionStatus
// of the root container that contains everything except for the borders.
isLeftMost = tabSetNodeRect.x === rootContainerRect.x;
isRightMost =
tabSetNodeRect.x + tabSetNodeRect.width === rootContainerRect.x + rootContainerRect.width;
Math.trunc(tabSetNodeRect.x + tabSetNodeRect.width) ===
Math.trunc(rootContainerRect.x + rootContainerRect.width);
return {
isTopMost,
isLeftMost,
Expand Down

0 comments on commit eca0db7

Please sign in to comment.