vivekvermaiit commited on
Commit
07f9614
·
1 Parent(s): e4dae69

try to fix row cutoff, last row not loading

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -133,6 +133,12 @@ js_switch_code = """
133
  const target = document.getElementById("leaderboard-" + region);
134
  if (target) {
135
  target.classList.add("visible");
 
 
 
 
 
 
136
  }
137
  }
138
  """
 
133
  const target = document.getElementById("leaderboard-" + region);
134
  if (target) {
135
  target.classList.add("visible");
136
+ // 🧠 Trigger reflow to fix row cutoff
137
+ void target.offsetHeight; // Trigger reflow
138
+ target.style.display = "none"; // Hide momentarily
139
+ requestAnimationFrame(() => {
140
+ target.style.display = "";
141
+ });
142
  }
143
  }
144
  """