Skip to content
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

Merged
merged 9 commits into from
Feb 24, 2017

Conversation

dms1lva
Copy link
Contributor

@dms1lva dms1lva commented Feb 16, 2017

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 76.174% when pulling c08da8a on JSUI-1431 into 351ec41 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 76.592% when pulling 65a09bc on JSUI-1431 into e3c95e9 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 76.592% when pulling 84df5e0 on JSUI-1431 into eb42cea on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 76.592% when pulling 3628aab on JSUI-1431 into eb42cea on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 76.592% when pulling 6aee614 on JSUI-1431 into 02d8943 on master.

this.coveoRoot.addClass('coveo-small-interface');
} else if (!this.shouldSwitchToSmallMode()) {
this.coveoRoot.removeClass('coveo-small-interface');
if (this.coveoRoot.width() != 0) {
Copy link
Member

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

Copy link
Member

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.)

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 76.586% when pulling da680a2 on JSUI-1431 into 483d119 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 76.586% when pulling e218303 on JSUI-1431 into 83dbf3e on master.

@dms1lva dms1lva merged commit 71be398 into master Feb 24, 2017
@dms1lva dms1lva deleted the JSUI-1431 branch February 24, 2017 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants