Restore "layout-left" styles for collapsed review panel comment popover (#7999)

GitOrigin-RevId: 230e202496c8bc7e4929fca9c35b7f8eba25653b
This commit is contained in:
Alf Eaton 2022-05-18 11:34:51 +01:00 committed by Copybot
parent cd11db456d
commit 5d05b2b21d

View file

@ -92,6 +92,7 @@ export default App.controller(
},
commentThreads: {},
resolvedThreadIds: {},
layoutToLeft: false,
rendererData: {},
formattedProjectMembers: {},
fullTCStateCollapsed: true,
@ -126,9 +127,11 @@ export default App.controller(
$scope.$broadcast('review-panel:layout')
)
$scope.$on('layout:pdf:resize', (event, state) =>
$scope.$on('layout:pdf:resize', (event, state) => {
$scope.reviewPanel.layoutToLeft =
state.east?.size < 220 || state.east?.initClosed
$scope.$broadcast('review-panel:layout', false)
)
})
$scope.$on('expandable-text-area:resize', event =>
$timeout(() => $scope.$broadcast('review-panel:layout'))