提交 e4f4199b 编写于 作者: S serge-rider

EntityE layout fix

上级 e5b52165
......@@ -251,6 +251,10 @@ public class ObjectPropertiesEditor extends AbstractDatabaseObjectEditor<DBSObje
// if (propsPlaceholder != null) {
Point propsSize = propsPlaceholder.computeSize(SWT.DEFAULT, SWT.DEFAULT, true);
Point sashSize = sashForm.getParent().getSize();
if (sashSize.x <= 0 || sashSize.y <= 0) {
// This may happen if EntityEditor created with some other active editor (i.e. props editor not visible)
sashSize = getParentSize(sashForm);
}
if (sashSize.x > 0 && sashSize.y > 0) {
float ratio = (float) propsSize.y / (float) sashSize.y;
int propsRatio = Math.min(1000, (int) (1000 * ratio));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册