fix: measure complete inspector before FxPlug host allocation
这个提交包含在:
1 父节点
0a1987572b
当前提交
dc56d0b321
8 个文件已更改
+294
-22
没有与搜索条件相匹配的文件
+13
-2
@@ -569,7 +569,11 @@ NSView<DYWorkspaceMaskEditing> *DYCreateWorkspaceMaskEditor(id<PROAPIAccessing>
|
||||
}
|
||||
[self themeChanged:nil];
|
||||
[self setAccessibilityLabel:@"大鱼调色检查器"];
|
||||
[self setNeedsLayout:YES];
|
||||
// FxPlug snapshots the returned frame when it allocates the host row.
|
||||
// Supply the document's actual height before that snapshot is taken.
|
||||
[self refresh];
|
||||
[self setNeedsLayout:YES];[self layoutSubtreeIfNeeded];
|
||||
if(!_embedded&&!_workspaceEditor)[self setFrameSize:NSMakeSize(self.frame.size.width,_preferredHeight)];
|
||||
}
|
||||
DYBetaSpanEnd(beta,nil);return self;
|
||||
}
|
||||
@@ -944,7 +948,14 @@ NSView<DYWorkspaceMaskEditing> *DYCreateWorkspaceMaskEditor(id<PROAPIAccessing>
|
||||
[self invalidateIntrinsicContentSize];
|
||||
if(self.frame.size.height!=preferred)
|
||||
[self setFrameSize:NSMakeSize(self.frame.size.width,preferred)];
|
||||
[self.superview setNeedsLayout:YES];
|
||||
// FxPlug places the custom view in a service-controller root.
|
||||
// Keep that root at the same natural size as its sole child.
|
||||
NSView *container=self.superview;
|
||||
if(container.subviews.count==1&&container.subviews.firstObject==self){
|
||||
[container setFrameSize:NSMakeSize(container.frame.size.width,preferred)];
|
||||
self.frame=NSMakeRect(0,0,self.frame.size.width,preferred);
|
||||
}
|
||||
[container setNeedsLayout:YES];
|
||||
NSAccessibilityPostNotification(self,NSAccessibilityLayoutChangedNotification);
|
||||
});
|
||||
}
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.17.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>98</string>
|
||||
<string>99</string>
|
||||
<key>NSHumanReadableCopyright</key>
|
||||
<string></string>
|
||||
<key>PlugInKit</key>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.17.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>98</string>
|
||||
<string>99</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
|
||||
<key>NSHumanReadableCopyright</key>
|
||||
|
||||
在新工单中引用
屏蔽一个用户