mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Fix unnecessary right marging being applied to review panel when rich text is open
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
+1
-1
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user