-
Notifications
You must be signed in to change notification settings - Fork 16
OD-537 [Fix] Background scrolling in LFD #595
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
base: master
Are you sure you want to change the base?
Changes from all commits
ecb1eb6
bd55fcf
87b0767
0a852ce
aa9ef10
a0972a8
990701a
7c83bb3
5ec125c
cf8bef1
c0c1ecc
3b518f3
6f0605c
fd04cef
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -306,6 +306,9 @@ DynamicList.prototype.attachObservers = function() { | |
} | ||
|
||
beforeOpen.then(function() { | ||
$el.parents('.simple-list-container').addClass('hidden'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this necessary as part of the solution? |
||
_this.$container.find('.dynamic-list-add-item').addClass('hidden'); | ||
|
||
Fliplet.Analytics.trackEvent({ | ||
category: 'list_dynamic_' + _this.data.layout, | ||
action: 'entry_open', | ||
|
@@ -322,9 +325,6 @@ DynamicList.prototype.attachObservers = function() { | |
return; | ||
} | ||
|
||
$el.parents('.simple-list-container').addClass('hidden'); | ||
_this.$container.find('.dynamic-list-add-item').addClass('hidden'); | ||
|
||
_this.showDetails(entryId); | ||
Fliplet.Page.Context.update({ | ||
dynamicListOpenId: entryId | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -359,6 +359,11 @@ DynamicList.prototype.attachObservers = function() { | |
} | ||
|
||
beforeOpen.then(function() { | ||
_this.$container.find('.new-small-card-list-container').addClass('hidden'); | ||
_this.$container.find('.dynamic-list-add-item').addClass('hidden'); | ||
|
||
$el.parents('.small-card-list-wrapper').addClass('hidden'); | ||
|
||
Fliplet.Analytics.trackEvent({ | ||
category: 'list_dynamic_' + _this.data.layout, | ||
action: 'entry_open', | ||
|
@@ -1869,6 +1874,7 @@ DynamicList.prototype.addDetailViewData = function(entry) { | |
|
||
if (_.isArray(entry.entryDetails) && entry.entryDetails.length) { | ||
_this.Utils.Record.assignImageContent(_this, entry); | ||
|
||
return entry; | ||
} | ||
|
||
|
@@ -2028,6 +2034,8 @@ DynamicList.prototype.showDetails = function(id, listData) { | |
var template = Handlebars.compile(data.src || src); | ||
var wrapperTemplate = Handlebars.compile(wrapper); | ||
|
||
$('.fl-page-content-wrapper').parent().css('overflow', 'hidden'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please explain why this isn't simply |
||
|
||
// This bit of code will only be useful if this component is added inside a Fliplet's Accordion component | ||
if (_this.$container.parents('.panel-group').not('.filter-overlay').length) { | ||
_this.$container.parents('.panel-group').not('.filter-overlay').addClass('remove-transform'); | ||
|
@@ -2075,6 +2083,7 @@ DynamicList.prototype.closeDetails = function() { | |
Fliplet.Page.Context.remove('dynamicListOpenId'); | ||
$overlay.removeClass('open'); | ||
_this.$container.find('.new-small-card-list-container').removeClass('overlay-open'); | ||
$('.fl-page-content-wrapper').parent().css('overflow', 'auto'); | ||
|
||
setTimeout(function() { | ||
$overlay.removeClass('ready'); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,6 +133,9 @@ DynamicList.prototype.attachObservers = function() { | |
} | ||
|
||
beforeOpen.then(function() { | ||
$(event.target).parents('.small-h-card-list-wrapper').addClass('hidden'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please explain why this isn't |
||
_this.$container.find('.dynamic-list-add-item').addClass('hidden'); | ||
|
||
Fliplet.Analytics.trackEvent({ | ||
category: 'list_dynamic_' + _this.data.layout, | ||
action: 'entry_open', | ||
|
@@ -750,6 +753,7 @@ DynamicList.prototype.addDetailViewData = function(entry) { | |
|
||
if (_.isArray(entry.entryDetails) && entry.entryDetails.length) { | ||
_this.Utils.Record.assignImageContent(_this, entry); | ||
|
||
return entry; | ||
} | ||
|
||
|
@@ -907,6 +911,8 @@ DynamicList.prototype.showDetails = function(id, listData) { | |
var template = Handlebars.compile(data.src || src); | ||
var wrapperTemplate = Handlebars.compile(wrapper); | ||
|
||
$('.fl-page-content-wrapper').parent().css('overflow', 'hidden'); | ||
|
||
// This bit of code will only be useful if this component is added inside a Fliplet's Accordion component | ||
if (_this.$container.parents('.panel-group').not('.filter-overlay').length) { | ||
_this.$container.parents('.panel-group').not('.filter-overlay').addClass('remove-transform'); | ||
|
@@ -952,6 +958,7 @@ DynamicList.prototype.closeDetails = function() { | |
Fliplet.Page.Context.remove('dynamicListOpenId'); | ||
$overlay.removeClass('open'); | ||
_this.$container.find('.new-small-h-card-list-container').removeClass('overlay-open'); | ||
$('.fl-page-content-wrapper').parent().css('overflow', 'auto'); | ||
|
||
setTimeout(function() { | ||
$overlay.removeClass('ready'); | ||
|
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.
Please explain how this fix works and why it's necessary