mirror of
https://github.com/overleaf/overleaf.git
synced 2024-09-16 02:52:31 -04: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)
|
detachFromAce(scope.sharejsDoc)
|
||||||
session = editor.getSession()
|
session = editor.getSession()
|
||||||
session?.destroy()
|
session?.destroy()
|
||||||
|
scope.eventsBridge.emit "aceScrollbarVisibilityChanged", false, 0
|
||||||
|
|
||||||
scope.$emit "#{scope.name}:inited", editor
|
scope.$emit "#{scope.name}:inited", editor
|
||||||
|
|
||||||
|
|
|
@ -164,7 +164,7 @@ define [
|
||||||
updateScrollbar()
|
updateScrollbar()
|
||||||
|
|
||||||
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"
|
$reviewPanelEl.css "right", "#{ scrollbar.scrollbarWidth }px"
|
||||||
else
|
else
|
||||||
$reviewPanelEl.css "right", "0"
|
$reviewPanelEl.css "right", "0"
|
||||||
|
|
Loading…
Reference in a new issue