浏览代码

fix editable bug

/main
xingwei.zhu 5 年前
当前提交
af38c83e
共有 2 个文件被更改,包括 5 次插入3 次删除
  1. 1
      Runtime/rendering/editable.cs
  2. 7
      Runtime/widgets/text_selection.cs

1
Runtime/rendering/editable.cs


else if (!this._selection.isCollapsed && this._selectionColor != null) {
showSelection = true;
}
this._updateSelectionExtentsVisibility(effectiveOffset);
}
if (showSelection) {

7
Runtime/widgets/text_selection.cs


using Unity.UIWidgets.scheduler;
using Unity.UIWidgets.service;
using Unity.UIWidgets.ui;
using Rect = Unity.UIWidgets.ui.Rect;
namespace Unity.UIWidgets.widgets {
static class TextSelectionUtils {

offset: value.selection.start + data.text.Length
)
);
selectionDelegate.bringIntoView(selectionDelegate.textEditingValue.selection.extendPos);
selectionDelegate.hideToolbar();
selectionDelegate.bringIntoView(selectionDelegate.textEditingValue.selection.extendPos);
selectionDelegate.hideToolbar();
});
}

正在加载...
取消
保存