Skip to content

Commit

Permalink
fix(FoldableApplicationViewSpanningRects): revert change Bounds pix t…
Browse files Browse the repository at this point in the history
…o dip

physical pixels are the correct unit
  • Loading branch information
conceptdev authored and jeromelaban committed Nov 15, 2021
1 parent 1971354 commit 3b2b2a1
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,7 @@ void layoutStateChange(WindowLayoutInfo newLayoutInfo)
// Set properties for FoldableApplicationViewSpanningRects to reference
HasFoldFeature = true;
IsSeparating = foldingFeature.IsSeparating;
FoldBounds = new Rect(foldingFeature.Bounds.Left / density,
foldingFeature.Bounds.Top / density,
foldingFeature.Bounds.Width()/ density,
foldingFeature.Bounds.Height() / density);
FoldBounds = foldingFeature.Bounds; // physical pixel values
FoldState = foldingFeature.State;
FoldOcclusionType = foldingFeature.OcclusionType;

Expand Down

0 comments on commit 3b2b2a1

Please sign in to comment.