Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
Fix visualiser shaking
Browse files Browse the repository at this point in the history
Summary:
Fixes https://fb.workplace.com/groups/443457641253219/permalink/731880702410910/

There was an issue with the visualisers resizing repeatidly as the scrollbar came in at a certain point. Simple solution is to have it always shown, to maximise space we make the scrollbar style thing

Changelog: UIDebugger fix visualiser shaking

Reviewed By: antonk52

Differential Revision: D55696687

fbshipit-source-id: 1f9cba35993c31679179890e6ecbd2830b60e400
  • Loading branch information
Luke De Feo authored and facebook-github-bot committed Apr 3, 2024
1 parent c4a7b15 commit 3782566
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export const Visualization2D: React.FC<
);
};

const horizontalPadding = 16; //allows space for vertical scroll bar
const horizontalPadding = 8; //allows space for vertical scroll bar

function Visualization2DContent({
disableInteractivity,
Expand Down Expand Up @@ -223,6 +223,8 @@ function Visualization2DContent({
ref={containerRef}
style={{
paddingLeft: horizontalPadding,
overflowY: 'scroll',
scrollbarWidth: 'thin',
}}
vertical>
<div
Expand Down

0 comments on commit 3782566

Please sign in to comment.