Page 1 of 1
How freeze the first column upon scrolling for BrowseForm
Posted: Wed Jan 06, 2021 10:01 am
by miasoft
In CodeLib we have freeze for SubForm:
2020-08-30: Subform: Freeze the first column upon scrolling horizontally
But how freeze one for BrowseForm?
Re: How freeze the first column upon scrolling for BrowseFor
Posted: Wed Jan 06, 2021 11:10 am
by kev1n
Maybe like this?
Code: Select all
if (nuFormType() == 'browse') {
$(window).scroll(function(e) {
var scrollLeft = $(window).scrollLeft();
$("[data-nu-column='0']").each(function() {
if (scrollLeft > 0) {
$(this).css({ 'left': scrollLeft, 'z-index': '100' });
} else {
$(this).css({ 'left': 3, 'z-index': '0'});
}
});
});
}
Re: How freeze the first column upon scrolling for BrowseFor
Posted: Wed Jan 06, 2021 12:01 pm
by miasoft
kev1n wrote:Maybe like this?
Tnx! It's works|