mirror of
https://github.com/xuthus83/pigallery2.git
synced 2025-01-14 14:43:17 +08:00
Fixing scroll hidden issue #587
This commit is contained in:
parent
51a473f4f0
commit
86603dec48
@ -9,8 +9,8 @@ export class PageHelper {
|
|||||||
return this.supportPageOffset
|
return this.supportPageOffset
|
||||||
? window.pageYOffset
|
? window.pageYOffset
|
||||||
: this.isCSS1Compat
|
: this.isCSS1Compat
|
||||||
? document.documentElement.scrollTop
|
? document.documentElement.scrollTop
|
||||||
: document.body.scrollTop;
|
: document.body.scrollTop;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static set ScrollY(value: number) {
|
public static set ScrollY(value: number) {
|
||||||
@ -33,8 +33,8 @@ export class PageHelper {
|
|||||||
return this.supportPageOffset
|
return this.supportPageOffset
|
||||||
? window.pageXOffset
|
? window.pageXOffset
|
||||||
: this.isCSS1Compat
|
: this.isCSS1Compat
|
||||||
? document.documentElement.scrollLeft
|
? document.documentElement.scrollLeft
|
||||||
: document.body.scrollLeft;
|
: document.body.scrollLeft;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static showScrollY(): void {
|
public static showScrollY(): void {
|
||||||
@ -42,7 +42,8 @@ export class PageHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static isScrollYVisible(): boolean {
|
public static isScrollYVisible(): boolean {
|
||||||
return PageHelper.body.style.overflowY === 'scroll';
|
return PageHelper.body.style.overflowY === 'scroll' ||
|
||||||
|
(!PageHelper.body.style.overflowY && document.documentElement.scrollHeight > document.documentElement.clientHeight);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static hideScrollY(): void {
|
public static hideScrollY(): void {
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
@ -18,7 +17,7 @@ bs-dropdown-container {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* TODO: remove popover in ngx-bootstrap, bootstrap 5.3-alpha is fixed */
|
/* TODO: remove popover in ngx-bootstrap, bootstrap 5.3-alpha is fixed */
|
||||||
.bs-popover-top, .bs-popover-bottom{
|
.bs-popover-top, .bs-popover-bottom {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -31,6 +30,7 @@ bs-dropdown-container {
|
|||||||
element.style {
|
element.style {
|
||||||
width: 100px;
|
width: 100px;
|
||||||
}
|
}
|
||||||
[data-bs-theme=dark] .btn:not(.btn-secondary):not(.btn-danger):not(.btn-warning):not(.btn-primary):not(.btn-success){
|
|
||||||
|
[data-bs-theme=dark] .btn:not(.btn-secondary):not(.btn-danger):not(.btn-warning):not(.btn-primary):not(.btn-success) {
|
||||||
--bs-btn-color: var(--bs-body-color);
|
--bs-btn-color: var(--bs-body-color);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user