1.5.2
Table column fix
This commit is contained in:
@@ -284,6 +284,7 @@ export function UTCIForecast() {
|
|||||||
} = useTableScroll({
|
} = useTableScroll({
|
||||||
headTableRef, bodyTableRef, bodyScrollRef, headTrackRef,
|
headTableRef, bodyTableRef, bodyScrollRef, headTrackRef,
|
||||||
forecast, visibleCols, selectedDay, skinType, vehicleType,
|
forecast, visibleCols, selectedDay, skinType, vehicleType,
|
||||||
|
indoorMode, indoorManaged,
|
||||||
});
|
});
|
||||||
|
|
||||||
// Geocoding search
|
// Geocoding search
|
||||||
|
|||||||
@@ -13,7 +13,8 @@
|
|||||||
//
|
//
|
||||||
// Inputs (passed by app.js):
|
// Inputs (passed by app.js):
|
||||||
// refs: { headTableRef, bodyTableRef, bodyScrollRef, headTrackRef }
|
// refs: { headTableRef, bodyTableRef, bodyScrollRef, headTrackRef }
|
||||||
// deps: { forecast, visibleCols, selectedDay, skinType, vehicleType }
|
// deps: { forecast, visibleCols, selectedDay, skinType, vehicleType,
|
||||||
|
// indoorMode, indoorManaged }
|
||||||
// — anything that should cause a re-sync when it changes.
|
// — anything that should cause a re-sync when it changes.
|
||||||
//
|
//
|
||||||
// Outputs:
|
// Outputs:
|
||||||
@@ -33,6 +34,8 @@ export function useTableScroll({
|
|||||||
selectedDay,
|
selectedDay,
|
||||||
skinType,
|
skinType,
|
||||||
vehicleType,
|
vehicleType,
|
||||||
|
indoorMode,
|
||||||
|
indoorManaged,
|
||||||
}) {
|
}) {
|
||||||
// ─── SCROLL INDICATORS ─────────────────────────────────────────────
|
// ─── SCROLL INDICATORS ─────────────────────────────────────────────
|
||||||
const [tableCanScrollLeft, setTableCanScrollLeft] = useState(false);
|
const [tableCanScrollLeft, setTableCanScrollLeft] = useState(false);
|
||||||
@@ -212,7 +215,7 @@ export function useTableScroll({
|
|||||||
if (ro) ro.disconnect();
|
if (ro) ro.disconnect();
|
||||||
window.removeEventListener('resize', sync);
|
window.removeEventListener('resize', sync);
|
||||||
};
|
};
|
||||||
}, [forecast, visibleCols, selectedDay, skinType, vehicleType]);
|
}, [forecast, visibleCols, selectedDay, skinType, vehicleType, indoorMode, indoorManaged]);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
tableCanScrollLeft,
|
tableCanScrollLeft,
|
||||||
|
|||||||
Reference in New Issue
Block a user