Map / resolve view constraints when resized/view changed

This makes the `resolveConstraints` view method public but not part of the
api.
This commit is contained in:
Olivier Guyot
2019-03-25 13:38:46 +01:00
parent 98994cad61
commit c08da3c694
2 changed files with 10 additions and 5 deletions
+6
View File
@@ -964,6 +964,10 @@ class PluggableMap extends BaseObject {
* @private
*/
handleSizeChanged_() {
if (this.getView()) {
this.getView().resolveConstraints(0);
}
this.render();
}
@@ -1051,6 +1055,8 @@ class PluggableMap extends BaseObject {
this.viewChangeListenerKey_ = listen(
view, EventType.CHANGE,
this.handleViewPropertyChanged_, this);
view.resolveConstraints(0);
}
this.render();
}