Skip to content

Commit

Permalink
work for #6205 fix f-test "Recalculate popup position after window re…
Browse files Browse the repository at this point in the history
…size"
  • Loading branch information
OlgaLarina committed Jul 19, 2023
1 parent a35386d commit a82d92d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ export class PopupBaseContainerComponent<T extends PopupBaseViewModel = PopupBas
popupModalModel.apply();
}

protected override getPropertiesToUpdateSync(): string[] {
return ["height"];
}

protected override getShouldReattachChangeDetector(): boolean {
return false;
}
Expand Down
3 changes: 2 additions & 1 deletion src/popup-dropdown-view-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { PopupModel } from "./popup";
import { PopupBaseViewModel } from "./popup-view-model";
import { IsTouch } from "./utils/devices";
import { settings } from "./settings";
import { SurveyModel } from "./survey";

export class PopupDropdownViewModel extends PopupBaseViewModel {
private scrollEventCallBack = (event: any) => {
Expand All @@ -26,7 +27,7 @@ export class PopupDropdownViewModel extends PopupBaseViewModel {
}
private resizeWindowCallback = () => {
if(!this.isOverlay) {
this.updatePosition(true, false);
this.updatePosition(true, SurveyModel.platform === "vue");
}
};
private clientY: number = 0;
Expand Down

0 comments on commit a82d92d

Please sign in to comment.