Commit 44f85c6
committed
fix(ObjectPage): re-expand header on tab switch in IconTabBar mode
In IconTabBar mode, switching tabs while the header was collapsed by
scrolling left the header permanently stuck — scrollTop was reset to 0
but headerCollapsed remained true with no scroll room to trigger
re-expansion.
Reset headerCollapsedInternal to false on tab switch so the header
expands naturally alongside scrollTo({ top: 0 }). The existing
scrollTimeout guard in useObserveHeights already prevents the
programmatic scroll from immediately re-collapsing it.
Also removes the redundant scrollTimeout clause from the spacer height
condition, which was suppressing scroll room during the tab switch
window.1 parent 08b5baf commit 44f85c6
2 files changed
Lines changed: 32 additions & 3 deletions
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1931 | 1931 | | |
1932 | 1932 | | |
1933 | 1933 | | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
| 1941 | + | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
| 1956 | + | |
| 1957 | + | |
| 1958 | + | |
| 1959 | + | |
| 1960 | + | |
| 1961 | + | |
| 1962 | + | |
| 1963 | + | |
1934 | 1964 | | |
1935 | 1965 | | |
1936 | 1966 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
325 | | - | |
326 | 325 | | |
327 | 326 | | |
| 327 | + | |
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
| |||
897 | 897 | | |
898 | 898 | | |
899 | 899 | | |
900 | | - | |
901 | | - | |
| 900 | + | |
902 | 901 | | |
903 | 902 | | |
904 | 903 | | |
| |||
0 commit comments