mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00
[WIP] Ensure position of PointsEditor dialog remains centered after adding points
This commit is contained in:
@@ -18,6 +18,7 @@ export default class PointsEditor extends Component {
|
||||
|
||||
_onPointsUpdated = () => {
|
||||
this.forceUpdate(); // Refresh the preview
|
||||
if (this.props.onPointsUpdated) this.props.onPointsUpdated();
|
||||
};
|
||||
|
||||
chooseAnimation = index => {
|
||||
|
@@ -263,6 +263,8 @@ export default class SpriteEditor extends Component {
|
||||
object={spriteObject}
|
||||
resourcesLoader={this.resourcesLoader}
|
||||
project={project}
|
||||
onPointsUpdated={() =>
|
||||
this.forceUpdate() /*Force update to ensure dialog is properly positionned*/}
|
||||
/>
|
||||
</Dialog>
|
||||
)}
|
||||
|
Reference in New Issue
Block a user