Skip to content

Commit 3abe757

Browse files
authored
Remove NavigationView.curInitWidth overwriting
1 parent bb4aecc commit 3abe757

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/NavigationView/index.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,13 @@ export class NavigationView extends React.Component<NavigationViewProps, Navigat
151151
if (window.innerWidth >= 1280) {
152152
if (this.state.currDisplayMode !== "compact") {
153153
this.setState({
154-
currDisplayMode: "compact",
155-
currInitWidth: 0
154+
currDisplayMode: "compact"
156155
});
157156
}
158157
} else {
159158
if (this.state.currDisplayMode === "compact") {
160159
this.setState({
161-
currDisplayMode: "minimal",
162-
currInitWidth: 48
160+
currDisplayMode: "minimal"
163161
});
164162
}
165163
}

0 commit comments

Comments
 (0)