# `GSEditViewController reflowKeepActiveContentCenteredWithCallback:origCenter:newCenter:`

*Instance Method*

Applies changes to the state of the edit view in changeBlock. Allow to customize the what position prior to the change change and after will be synced. e.g. when centering on the selection

## Declaration

```swift
func reflowKeepActiveContentCentered(callback changeBlock: (Any) -> Void, origCenter origCenterBlock: ((GSLayer) -> NSPoint)?, newCenter newCenterBlock: ((GSLayer) -> NSPoint)? = nil)
```

```objc
- (void) reflowKeepActiveContentCenteredWithCallback:(void (^)(id self)) changeBlock origCenter:(NSPoint (^)(GSLayer *oldActiveLayer)) origCenterBlock newCenter:(NSPoint (^)(GSLayer *newActiveLayer)) newCenterBlock;
```

```python
reflowKeepActiveContentCenteredWithCallback_origCenter_newCenter_(self: object, changeBlock, oldActiveLayer: GSLayer, origCenterBlock, newActiveLayer: GSLayer, newCenterBlock)
```

