| Index: sky/engine/core/editing/EditorCommand.cpp
|
| diff --git a/sky/engine/core/editing/EditorCommand.cpp b/sky/engine/core/editing/EditorCommand.cpp
|
| index 7e357337bde076b20cd55b96a0fb9d33ba36f0f3..802b8486fdadfd5dde15503da0c8186d2a7682f4 100644
|
| --- a/sky/engine/core/editing/EditorCommand.cpp
|
| +++ b/sky/engine/core/editing/EditorCommand.cpp
|
| @@ -104,7 +104,8 @@ static unsigned verticalScrollDistance(LocalFrame& frame)
|
| return 0;
|
| if (!(style->overflowY() == OSCROLL || style->overflowY() == OAUTO || focusedElement->hasEditableStyle()))
|
| return 0;
|
| - int height = std::min<int>(renderBox.clientHeight(), frame.view()->visibleHeight());
|
| + int height = std::min<int>(renderBox.clientHeight(),
|
| + frame.view()->height());
|
| return static_cast<unsigned>(max(max<int>(height * ScrollableArea::minFractionToStepWhenPaging(), height - ScrollableArea::maxOverlapBetweenPages()), 1));
|
| }
|
|
|
|
|