Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhx828 committed Nov 7, 2024
1 parent 14b9277 commit 9935a41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/main/webapp/app/components/PageContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ const PageContainer: React.FunctionComponent<{
<div className={'view-wrapper'}>
classname: {classname}
classname: {originalClassname}
in gene page: {inGenePage}
in gene page: {`'${inGenePage}'`}
window width: {props.windowStore.size.width}
window height: {props.windowStore.size.height}
windowObj innerWidth: {props.windowStore.windowObj.innerWidth}
windowObj innerHeight: {props.windowStore.windowObj.innerHeight}
<div className={classname}>
<Container inGenePage={inGenePage}>{props.children}</Container>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/app/store/WindowStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export interface IWindowSize {
class WindowStore {
@observable size: IWindowSize;
private handleWindowResize = debounce(this.setWindowSize, 200);
private windowObj: any;
public windowObj: any;
private onClickEvents: { (event: any): void }[] = [];

constructor() {
Expand Down

0 comments on commit 9935a41

Please sign in to comment.