-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
delayed first width check when zero for reponsive components #370
Conversation
this.coveoRoot.addClass('coveo-small-interface'); | ||
} else if (!this.shouldSwitchToSmallMode()) { | ||
this.coveoRoot.removeClass('coveo-small-interface'); | ||
if (this.coveoRoot.width() != 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's getting a bit convoluted in here...
In any case, I would at least add some information with the Logger
to inform potential dev why the ResponsiveComponentsManager
cannot do it's job.
Maybe even some info that points to possible solution :
eg : SearchInterface is display none
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, explaining the consequence of this would be useful (explaining that facet won't hide in a menu, tabs, won't resize correctly in a dropdown, etc.)
https://coveord.atlassian.net/browse/JSUI-1431