Anas198900 / Anas198900/waledzaad
<!--
- 主要语言
- 没有语言数据
- 星标
- 2
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
描述
**monaco-editor version:** 0.21.2
**Browser:** Chrome 88.0.4324.192
**OS:** macOS Catalina 10.15.2 (19C57)
**Playground code that reproduces the issue:**
```js
var diffEditor = monaco.editor.createDiffEditor(document.getElementById("container"), {
acceptSuggestionOnCommitCharacter: false,
acceptSuggestionOnEnter: 'off',
automaticLayout: true,
codeLens: false,
contextmenu: false,
copyWithSyntaxHighlighting: true,
fontFamily: 'Menlo',
fontSize: 14,
glyphMargin: false,
ignoreTrimWhitespace: false,
lineHeight: 24,
lineNumbersMinChars: 5,
links: true,
matchBrackets: 'always',
maxComputationTime: 5000,
mouseWheelZoom: false,
readOnly: true,
renderIndentGuides: false,
renderIndicators: true,
renderWhitespace: 'none',
scrollBeyondLastColumn: 0,
scrollBeyondLastLine: false,
scrollbar: {
alwaysConsumeMouseWheel: false,
vertical: 'hidden',
verticalScrollbarSize: 0,
verticalSliderSize: 0,
},
selectOnLineNumbers: false,
selectionHighlight: true,
showFoldingControls: 'always',
smoothScrolling: true,
stopRenderingLineAfter: 10000,
renderSideBySide: false
});
const lang = 'java';
diffEditor.setModel({
original: monaco.editor.createModel(
`import xxx;
if (optional.isPresent()) {
return optional.get().getCUserId(orderInfo,rpcUserService);
} else {
LOGGER.error("CUserAquireFactory.flowProcessContext 该订单险种策略查询异常,orderId:{}", orderInfo.getInsureOrderInfo().getOrderId(), new NoCUserStrategyFoundException());
throw new NoCUserStrategyFoundException();
}`,
lang
),
modified: monaco.editor.createModel(
`import xxx;
if (optional.isPresent()) {
return optional.get().getCUserId(orderInfo,rpcUserService);
} else {
ExceptionUtil.logError(LOGGER,"CUserAquireFactory.flowProcessContext 该订单险种策略查询异常,orderId:{}", orderInfo.getInsureOrderInfo().getOrderId(), new NoCUserStrategyFoundException());
throw new NoCUserStrategyFoundException();
}`,
lang
),
});
```
**Question:**
I use the configuration items and text as shown in the above code, and the horizontal scrolling is not normal in my system. The specific manifestation is that after the horizontal scroll to the rightmost side, the code cannot be scrolled without being fully displayed.

I tested on the playground that it can scroll normally, but in my system this case cannot scroll normally😔
Then I did not change the configuration items, and used other cases, and I can scroll normally

Playground code:
```js
var diffEditor = monaco.editor.createDiffEditor(document.getElementById("container"), {
acceptSuggestionOnCommitCharacter: false,
acceptSuggestionOnEnter: 'off',
automaticLayout: true,
codeLens: false,
contextmenu: false,
copyWithSyntaxHighlighting: true,
fontFamily: 'Menlo',
fontSize: 14,
glyphMargin: false,
ignoreTrimWhitespace: false,
lineHeight: 24,
lineNumbersMinChars: 5,
links: true,
matchBrackets: 'always',
maxComputationTime: 5000,
mouseWheelZoom: false,
readOnly: true,
renderIndentGuides: false,
renderIndicators: true,
renderWhitespace: 'none',
scrollBeyondLastColumn: 0,
scrollBeyondLastLine: false,
scrollbar: {
alwaysConsumeMouseWheel: false,
vertical: 'hidden',
verticalScrollbarSize: 0,
verticalSliderSize: 0,
},
selectOnLineNumbers: false,
selectionHighlight: true,
showFoldingControls: 'always',
smoothScrolling: true,
stopRenderingLineAfter: 10000,
renderSideBySide: false
});
const lang = 'java';
diffEditor.setModel({
original: monaco.editor.createModel(
`import xxx;
OrderInfo orderInfo = policyDelegate.getOrderInfo(orderId);
Long userId = CUserAquireFactory.flowProcessContext(orderInfo, rpcUserServiceDelegate);
if (userId == 0) {
LOGGER.error("syncOrderData2DB error orderId:{}", orderId, new NoCUserFoundException());
throw new NoCUserFoundException();
}
indexUserOrderPo.setUserId(userId);`,
lang
),
modified: monaco.editor.createModel(
`import xxx;
OrderInfo orderInfo = policyDelegate.getOrderInfo(orderId);
Long userId = CUserAquireFactory.flowProcessContext(orderInfo, rpcUserServiceDelegate);
if (userId == 0) {
ExceptionUtil.logError(LOGGER,"syncOrderData2DB error orderId:{}", orderId, new NoCUserFoundException());
throw new NoCUserFoundException();
}
indexUserOrderPo.setUserId(userId);`,
lang
),
});
```
__Originally posted by @chenmy0917 in https://github.com/microsoft/monaco-editor/issues/2365__
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。