GRAPHICS: MACGUI: fix the logic when calc the coordinate of scrollbar

This commit is contained in:
ysj1173886760 2021-04-21 15:34:24 +08:00 committed by Eugene Sandulenko
parent ac9e312895
commit 9c9b553d7a

View File

@ -353,7 +353,7 @@ void MacTextWindow::calcScrollBar() {
maxScrollbar = getDimensions().height() - getBorderOffsets().upperScrollHeight - getBorderOffsets().lowerScrollHeight;
// if we enable the win95 mode but the text height is smaller than window height, then we don't draw the scrollbar
if (_wm->_mode & kWMModeWin95 && displayHeight > _mactext->getTextHeight())
if (_wm->_mode & kWMModeWin95 && displayHeight > _mactext->getTextHeight() && !_editable)
return;
if (_editable)