Project

General

Profile

Bug #11303

Editor isn't drawn when it is defined using INNER-CHARS and INNER-LINES

Added by Delia Mitric 4 months ago. Updated 7 days ago.

Status:
Review
Priority:
Normal
Target version:
-
Start date:
Due date:
% Done:

100%

billable:
No
vendor_id:
GCD
case_num:
version_reported:
version_resolved:
reviewer:
production:
No
env_name:
topics:

Fwd.png (2.14 KB) Delia Mitric, 03/17/2026 06:55 AM

OE.png (2.54 KB) Delia Mitric, 03/17/2026 06:55 AM

History

#1 Updated by Delia Mitric 4 months ago

Testcase:

DEFINE VARIABLE edDesc AS CHARACTER VIEW-AS EDITOR
    INNER-CHARS 30 INNER-LINES 3 NO-UNDO font 0.

DEFINE FRAME F-Main
    edDesc AT ROW 2.52 COL 15
    WITH 1 DOWN SIDE-LABELS three-d
    SIZE 80 BY 10.

ENABLE ALL WITH FRAME F-Main.
wait-for close of current-window.

OE:
FWD:

#2 Updated by Delia Mitric 4 months ago

The dimension of the scrollpaneguiimpl (editorscroll) is 0 x 0 when we use INNER-CHARS/INNER-LINES in the editor definition.

#3 Updated by Razvan-Nicolae Chichirau 12 days ago

  • Status changed from New to WIP
  • Assignee set to Razvan-Nicolae Chichirau

#4 Updated by Razvan-Nicolae Chichirau 7 days ago

  • Status changed from WIP to Review
  • % Done changed from 0 to 100
  • reviewer Hynek Cihlar added

The problem is caused by the order of operations in EditorGuiImpl.initialize(). The scroll pane is initialized and laid out before the editor size is adjusted. Since the editor dimensions are not set yet, the scroll pane inherits a 0x0 dimension. This is considered a valid size, so it does not fall back to the parent dimensions during layout.

The fix is to correct the initialization order: first initialize the scroll pane, then adjust the editor size, and finally lay out the scroll pane.

Hynek: Please review 11303a/rev. 16644.

Also available in: Atom PDF