Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
clean-and-itasks
clm
Commits
ff3995cb
Commit
ff3995cb
authored
May 21, 2003
by
Diederik van Arkel
Browse files
adjust window width to char width;
parent
5e6f4f9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
CleanIDE/Ed/EdVisualText.icl
View file @
ff3995cb
...
...
@@ -48,12 +48,12 @@ computeViewDomain
{
corner1
=
{
x
=
if
lineNumbers
(
fontInfo
.
metrics
.
fMaxWidth
*(
-5
))
(
-4
)
,
y
=
0
}
,
corner2
=
{
x
=
MAX_LINE_WIDTH
,
corner2
=
{
x
=
fontInfo
.
charWidth
*
MAX_LINE_WIDTH
,
y
=
fontInfo
.
lineHeight
*
textLength
text
+
fontInfo
.
metrics
.
fLeading
+
fontInfo
.
metrics
.
fDescent
}
}
where
MAX_LINE_WIDTH
=
20
00
MAX_LINE_WIDTH
=
3
20
//\\//\\//\\//\\//
getViewFrame
::
EditMonad
(
PSt
.
l
)
ViewFrame
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment