[core] make padding optional when camera position is requested.
When padding is not provided, the current one that's cached in the TransformState is going to be returned.
This commit is contained in:
committed by
Łukasz Paczos
parent
6a4e431dbe
commit
e5c219d035
@@ -63,7 +63,7 @@ void Transform::resize(const Size size) {
|
||||
|
||||
#pragma mark - Camera
|
||||
|
||||
CameraOptions Transform::getCameraOptions(const EdgeInsets& padding) const {
|
||||
CameraOptions Transform::getCameraOptions(optional<EdgeInsets> padding) const {
|
||||
return state.getCameraOptions(padding);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user