Bug #11303
Editor isn't drawn when it is defined using INNER-CHARS and INNER-LINES
Start date:
Due date:
% Done:
100%
billable:
No
vendor_id:
GCD
case_num:
version_reported:
version_resolved:
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: 
#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.