Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

fix(fxLayoutGap): account for responsive fxHide on children elements #931

Merged
merged 2 commits into from
Dec 18, 2018

Conversation

CaerusKaru
Copy link
Member

Fixes #606

return this.styler.lookupStyle(source, query);
/** Determine if an element will show or hide based on current activation */
protected willDisplay(source: HTMLElement): boolean {
const value = this.marshal.getValue(source, 'show-hide');
Copy link
Contributor

@ThomasBurleson ThomasBurleson Dec 17, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about this for better clarity:

const value = this.marshal.getValue(source, 'show-hide');
if ( value == '' || value == undefined) {
  // Current value is not explicitly set (to 'false' or 'true'), so lookStyle() 
  value = this.styleUtils.lookupStyle(source, 'display') !== 'none';
}
return value;

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the value gain is great in terms of clarity: the value returned from the marshaller will never be undefined.

@CaerusKaru
Copy link
Member Author

Blocked because this doesn't entirely fix the issue. Will investigate further today.

@CaerusKaru CaerusKaru merged commit 7759b6c into master Dec 18, 2018
@CaerusKaru CaerusKaru deleted the adam/fix-issue-606 branch December 18, 2018 03:28
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fxLayoutGap not allows working on resize
3 participants