SelectBox: Prevent layout/hide on no room/offscreen Fixes: #55750 (#56173)

This commit is contained in:
Christopher Leidigh
2018-08-17 13:10:45 -04:00
committed by GitHub
parent 5399233b88
commit faadee87a5
2 changed files with 65 additions and 22 deletions

View File

@@ -173,6 +173,11 @@ export class ContextView {
}
private doLayout(): void {
// Check that we still have a delegate - this.delegate.layout may have hidden
if (!this.isVisible()) {
return;
}
// Get anchor
let anchor = this.delegate.getAnchor();