Commit eb1559a 1 parent d05c5a6 commit eb1559a Copy full SHA for eb1559a
File tree 2 files changed +5
-4
lines changed
src/DynamoCoreWpf/ViewModels/Core
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -2771,6 +2771,7 @@ var customNodeWorkspace in
2771
2771
}
2772
2772
// Center the view on the model
2773
2773
this . CurrentSpaceViewModel . OnRequestCenterViewOnElement ( this , new ModelEventArgs ( e ) ) ;
2774
+ FitView ( false ) ;
2774
2775
}
2775
2776
2776
2777
private void CancelActiveState ( NodeModel node )
Original file line number Diff line number Diff line change @@ -1156,23 +1156,23 @@ public double GetSelectionAverageY()
1156
1156
1157
1157
public double GetSelectionMinX ( )
1158
1158
{
1159
- return DynamoSelection . Instance . Selection . Where ( ( x ) => ! ( x is AnnotationModel ) && x is ILocatable )
1159
+ return DynamoSelection . Instance . Selection . Where ( ( x ) => x is ILocatable )
1160
1160
. Cast < ILocatable > ( )
1161
1161
. Select ( ( x ) => x . X )
1162
1162
. Min ( ) ;
1163
1163
}
1164
1164
1165
1165
public double GetSelectionMinY ( )
1166
1166
{
1167
- return DynamoSelection . Instance . Selection . Where ( ( x ) => ! ( x is AnnotationModel ) && x is ILocatable )
1167
+ return DynamoSelection . Instance . Selection . Where ( ( x ) => x is ILocatable )
1168
1168
. Cast < ILocatable > ( )
1169
1169
. Select ( ( x ) => x . Y )
1170
1170
. Min ( ) ;
1171
1171
}
1172
1172
1173
1173
public double GetSelectionMaxX ( )
1174
1174
{
1175
- return DynamoSelection . Instance . Selection . Where ( ( x ) => ! ( x is AnnotationModel ) && x is ILocatable )
1175
+ return DynamoSelection . Instance . Selection . Where ( ( x ) => x is ILocatable )
1176
1176
. Cast < ILocatable > ( )
1177
1177
. Select ( ( x ) => x . X + x . Width )
1178
1178
. Max ( ) ;
@@ -1188,7 +1188,7 @@ public double GetSelectionMaxLeftX()
1188
1188
1189
1189
public double GetSelectionMaxY ( )
1190
1190
{
1191
- return DynamoSelection . Instance . Selection . Where ( ( x ) => ! ( x is AnnotationModel ) && x is ILocatable )
1191
+ return DynamoSelection . Instance . Selection . Where ( ( x ) => x is ILocatable )
1192
1192
. Cast < ILocatable > ( )
1193
1193
. Select ( ( x ) => x . Y + x . Height )
1194
1194
. Max ( ) ;
You can’t perform that action at this time.
0 commit comments