修复左侧面板区布局问题,调整影响列表和被影响列表,使左侧面板区能够独占一列

This commit is contained in:
zqm
2025-10-20 11:43:59 +08:00
parent 4be889e35e
commit f47b5e5fef

View File

@@ -227,12 +227,10 @@ export class LayoutCoordinator {
{ position: 'center', property: 'width', influence: true }
],
top: [
{ position: 'left', property: 'height', influence: true },
{ position: 'center', property: 'height', influence: true },
{ position: 'right', property: 'height', influence: true }
],
bottom: [
{ position: 'left', property: 'height', influence: true },
{ position: 'center', property: 'height', influence: true },
{ position: 'right', property: 'height', influence: true }
],
@@ -241,22 +239,22 @@ export class LayoutCoordinator {
// 受影响数组:计算某个面板大小时,需要考虑哪些其他面板
influencedBy: {
left: [
{ position: 'top', property: 'height', influence: true },
{ position: 'center', property: 'width', influence: true },
{ position: 'right', property: 'width', influence: true },
{ position: 'bottom', property: 'height', influence: true }
{ position: 'right', property: 'width', influence: true }
],
right: [
{ position: 'top', property: 'height', influence: true },
{ position: 'left', property: 'width', influence: true },
{ position: 'center', property: 'width', influence: true },
{ position: 'bottom', property: 'height', influence: true }
{ position: 'center', property: 'width', influence: true }
],
top:[
{ position: 'left', property: 'width', influence: true },
{ position: 'right', property: 'width', influence: true },
{ position: 'center', property: 'height', influence: true },
{ position: 'bottom', property: 'height', influence: true }
],
bottom: [
{ position: 'left', property: 'width', influence: true },
{ position: 'right', property: 'width', influence: true },
{ position: 'top', property: 'height', influence: true },
{ position: 'center', property: 'height', influence: true }
],