Skip to content

kps-ai p56 외부 표 안 콘텐츠가 표 높이를 초과해 클립 (v0.7.3 대비 회귀) #362

@edwardkim

Description

@edwardkim

증상

samples/kps-ai.hwp 페이지 56 의 외부 표 (pi=535, 1x1, TAC, size=635.0×865.1px) 안에 있는 콘텐츠 (텍스트 11 paragraphs + 7x6 내부 표) 가 외부 표의 높이를 초과해 셀 내용이 클립됨.

v0.7.3 에서는 정상 표시되었음 (작업지시자 시각 확인).

정량

  • 외부 표: 1x1, TAC, common.height=64879 HU (≈865.1 px)
  • 외부 셀 [0,0]: h=62611 HU (≈834.8 px)
  • 셀 안: 11 paragraphs, 그 중 p[2] 가 7x6 내부 표

dump-pages 결과 (main):

Table pi=535 ci=0 1x1 635.0x865.1px wrap=TopAndBottom tac=true

→ 외부 표 자체 크기는 v0.7.3 와 동일. 그러나 셀 안 콘텐츠 누적이 외부 표 높이를 초과 → 클립.

의심 origin

src/renderer/height_measurer.rs 의 TAC 표 height clamping 로직 (Task #35 도입, e60ab00):

let table_height = if table.common.treat_as_char && common_h > 0.0 && raw_table_height > common_h + 1.0 {
    let scale = common_h / raw_table_height;
    for h in &mut row_heights { *h *= scale; }
    common_h
} else { raw_table_height };

TAC 표는 common.height 로 클램프하지만, 셀 안의 콘텐츠 (특히 내부 표) 의 실제 렌더 높이는 별도 계산 되어 클립 발생.

v0.7.3 → main 사이 height_measurer.rs 의 차이 (단축 버전):

영향

  • 외부 표 안에 다른 표 또는 텍스트가 들어가는 모든 케이스에서 잠재적 클립
  • 한컴은 이 케이스를 정상 표시하므로 호환성 회귀

검증 기준 (예상)

  • p56 의 외부 표 안 콘텐츠가 클립 없이 정상 표시
  • v0.7.3 와 같은 시각 결과
  • 7 핵심 샘플 + form-002 + k-water-rfp + kps-ai 회귀 0
  • LAYOUT_OVERFLOW 0 유지

관련

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions