mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Fix unnecessary right marging being applied to review panel when rich text is open
This commit is contained in:
parent
538aba323a
commit
b4dd047371
2 changed files with 2 additions and 1 deletions
|
@ -521,6 +521,7 @@ define [
|
|||
detachFromAce(scope.sharejsDoc)
|
||||
session = editor.getSession()
|
||||
session?.destroy()
|
||||
scope.eventsBridge.emit "aceScrollbarVisibilityChanged", false, 0
|
||||
|
||||
scope.$emit "#{scope.name}:inited", editor
|
||||
|
||||
|
|
|
@ -164,7 +164,7 @@ define [
|
|||
updateScrollbar()
|
||||
|
||||
updateScrollbar = () ->
|
||||
if scrollbar.isVisible and $scope.reviewPanel.subView == $scope.SubViews.CUR_FILE
|
||||
if scrollbar.isVisible and $scope.reviewPanel.subView == $scope.SubViews.CUR_FILE and !$scope.editor.showRichText
|
||||
$reviewPanelEl.css "right", "#{ scrollbar.scrollbarWidth }px"
|
||||
else
|
||||
$reviewPanelEl.css "right", "0"
|
||||
|
|
Loading…
Reference in a new issue