@worktile/theia 14.3.2 → 14.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -13416,9 +13416,9 @@ class TheTdComponent extends TheBaseElementComponent {
|
|
|
13416
13416
|
if (tableElementTop < this.scrollableElementTop) {
|
|
13417
13417
|
height = this.tableElement.offsetHeight - (this.scrollableElementTop - tableElementTop);
|
|
13418
13418
|
const editor = this.elementRef.nativeElement.closest('the-editor');
|
|
13419
|
-
const toolbar = editor.
|
|
13419
|
+
const toolbar = editor.querySelector('.the-global-toolbar');
|
|
13420
13420
|
// 处理 toolbar 存在的时候减去内嵌工具栏高度
|
|
13421
|
-
if (toolbar
|
|
13421
|
+
if (toolbar) {
|
|
13422
13422
|
height = height - toolbar.offsetHeight;
|
|
13423
13423
|
this.overlayRef.hostElement.style.marginTop = `${toolbar.offsetHeight}px`;
|
|
13424
13424
|
}
|