Adam Shaw 6 年之前
父節點
當前提交
4d680f1506
共有 2 個文件被更改,包括 6 次插入6 次删除
  1. 1 1
      packages-premium
  2. 5 5
      packages/timegrid/src/TimeColsSlats.tsx

+ 1 - 1
packages-premium

@@ -1 +1 @@
-Subproject commit 270b99e14324fe78f0ddd45499c379cff360612d
+Subproject commit 288f7d3618da78bad17fa1dfabc462b5c07d0a31

+ 5 - 5
packages/timegrid/src/TimeColsSlats.tsx

@@ -51,8 +51,8 @@ for the horizontal "slats" that run width-wise. Has a time axis on a side. Depen
 
 export default class TimeColsSlats extends BaseComponent<TimeColsSlatsProps> {
 
-  rootElRef = createRef<HTMLDivElement>()
-  slatElRefs = new RefMap<HTMLTableRowElement>()
+  private rootElRef = createRef<HTMLDivElement>()
+  private slatElRefs = new RefMap<HTMLTableRowElement>()
 
 
   render(props: TimeColsSlatsProps, state: {}, context: ComponentContext) {
@@ -81,12 +81,12 @@ export default class TimeColsSlats extends BaseComponent<TimeColsSlatsProps> {
 
 
   componentDidMount() {
-    this.updateCoords()
+    this.updateSizing()
   }
 
 
   componentDidUpdate() {
-    this.updateCoords()
+    this.updateSizing()
   }
 
 
@@ -97,7 +97,7 @@ export default class TimeColsSlats extends BaseComponent<TimeColsSlatsProps> {
   }
 
 
-  updateCoords() {
+  updateSizing() {
     let { props } = this
 
     if (props.onCoords && props.clientWidth) { // clientWidth means sizing has stabilized