Skip to content

Commit

Permalink
Revert "Rating is changed to drop-down view on validation. (#8440)"
Browse files Browse the repository at this point in the history
This reverts commit 1e55217.
  • Loading branch information
novikov82 authored Jun 20, 2024
1 parent 3503372 commit c168470
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
4 changes: 0 additions & 4 deletions packages/survey-angular-ui/test/markup/test.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ describe("etalon tests", () => {
imports: [SurveyModule],
}).compileComponents();
TestBed.inject(SurveyModule);
Object.defineProperty(document, "fonts", {
get: () => { return { ready: { then: () => {} } }; },
configurable: true,
});
(<any>window).ResizeObserver = function () {
return {
observe: () => {},
Expand Down
9 changes: 0 additions & 9 deletions src/survey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4807,15 +4807,6 @@ export class SurveyModel extends SurveyElementCore
});
this.rootElement = htmlElement;
this.addScrollEventListener();

if (DomDocumentHelper.isAvailable()) {
const fonts = (DomDocumentHelper.getDocument() as any).fonts;
if (fonts) {
fonts.ready.then(() => {
this.triggerResponsiveness(true);
});
}
}
}
private processResponsiveness(width: number, mobileWidth: number): boolean {
const isMobile = width < mobileWidth;
Expand Down

0 comments on commit c168470

Please sign in to comment.