1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-11 18:24:43 +02:00

Desktop: Fixed scrolling issue when clicking on anchor

This commit is contained in:
Laurent Cozic 2019-12-30 13:00:53 +01:00
parent 204365b2ae
commit fc67a44f95

View File

@ -376,14 +376,14 @@ class MainScreenComponent extends React.Component {
backgroundColor: theme.warningBackgroundColor, backgroundColor: theme.warningBackgroundColor,
}; };
const rowHeight = height - theme.headerHeight - (messageBoxVisible ? this.styles_.messageBox.height : 0);
this.styles_.verticalResizer = { this.styles_.verticalResizer = {
width: 5, width: 5,
height: height, height: rowHeight,
display: 'inline-block', display: 'inline-block',
}; };
const rowHeight = height - theme.headerHeight - (messageBoxVisible ? this.styles_.messageBox.height : 0);
this.styles_.sideBar = { this.styles_.sideBar = {
width: sidebarWidth - this.styles_.verticalResizer.width, width: sidebarWidth - this.styles_.verticalResizer.width,
height: rowHeight, height: rowHeight,