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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user