mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: remove header
This commit is contained in:
1 parent
ef73b97089
commit
ec8606cc49
16 files changed
+58
-281
No files matched your search
@@ -1,8 +1,12 @@
|
||||
import 'sticky-kit/dist/sticky-kit';
|
||||
import _ from 'lodash';
|
||||
|
||||
import Navigation from 'vj/components/navigation';
|
||||
import DOMAttachedObject from 'vj/components/DOMAttachedObject';
|
||||
import { isBelow } from 'vj/utils/mediaQuery';
|
||||
import responsiveCutoff from 'vj/breakpoints.json';
|
||||
|
||||
const navHeight = isBelow(responsiveCutoff.mobile)
|
||||
? 0
|
||||
: $('.nav').height();
|
||||
|
||||
export default class StyledTable extends DOMAttachedObject {
|
||||
static DOMAttachKey = 'vjStyledTableInstance';
|
||||
@@ -33,7 +37,7 @@ export default class StyledTable extends DOMAttachedObject {
|
||||
|
||||
const stickyOptions = {
|
||||
parent: this.$container,
|
||||
offset_top: Navigation.instance.getHeight(),
|
||||
offset_top: navHeight,
|
||||
};
|
||||
_.defer(() => this.$header.stick_in_parent(stickyOptions));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user