Skip to content

Commit bdc9a3e

Browse files
committed
version up: beta.33
1 parent 614d229 commit bdc9a3e

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "suneditor",
3-
"version": "3.0.0-beta.32",
3+
"version": "3.0.0-beta.33",
44
"description": "Vanilla JavaScript based WYSIWYG web editor",
55
"author": "Yi JiHong",
66
"license": "MIT",

src/core/class/offset.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,6 @@ Offset.prototype = {
736736
* - bMargin: bottom margin
737737
*/
738738
_getVMargin(tmtw, tmbw, toolbarH, clientSize, targetRect, isTextSelection, isToolbarTarget) {
739-
const isScrollable = this.status.isScrollable();
740739
const wwRects = this.selection.getRects(this.frameContext.get('wysiwyg'), 'start').rects;
741740

742741
let rmt = 0;
@@ -757,7 +756,7 @@ Offset.prototype = {
757756
if (!isTextSelection) {
758757
const emt = editorOffset.fixedTop > 0 ? editorOffset.fixedTop : 0;
759758
const emb = _w.innerHeight - (editorOffset.fixedTop + editorOffset.height);
760-
rt = !isToolbarTarget && (this.toolbar.isSticky || (isScrollable && !this.toolbar._isBalloon)) ? toolbarH : 0;
759+
rt = !isToolbarTarget && (this.toolbar.isSticky || !this.toolbar._isBalloon) ? toolbarH : 0;
761760
rmt = tMargin - (!isToolbarTarget ? emt : 0) - rt;
762761
rmb = bMargin - (emb > 0 ? emb : 0);
763762
} else {

0 commit comments

Comments
 (0)