| | |
| | | if (i >= 0) { |
| | | int j = xml.indexOf('>', i); |
| | | if (j > 0) { |
| | | String attrs = addAttr(stripAttr(xml.substring(i + 10, j), "topLeftCell"), "topLeftCell", target); |
| | | // 2026-10-14:滚动起点固定回 A1(只挪光标,不挪视口),否则打开时表头行与左侧列会被滚出视野 |
| | | String attrs = addAttr(stripAttr(xml.substring(i + 10, j), "topLeftCell"), "topLeftCell", "A1"); |
| | | xml = xml.substring(0, i) + "<sheetView" + attrs + ">" + xml.substring(j + 1); |
| | | } |
| | | } |
| | |
| | | if (q > 0) { |
| | | String raw = xml.substring(p + 5, q); |
| | | activePane = attrValue(raw, "activePane"); |
| | | String attrs = addAttr(stripAttr(raw, "topLeftCell"), "topLeftCell", target); |
| | | String attrs = addAttr(stripAttr(raw, "topLeftCell"), "topLeftCell", "A1"); |
| | | xml = xml.substring(0, p) + "<pane" + attrs + "/>" + xml.substring(q + 2); |
| | | } |
| | | } |