Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
gforth
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Bernd Paysan
gforth
Commits
418a0645
Verified
Commit
418a0645
authored
Apr 04, 2020
by
Bernd Paysan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a small fudge factor to hbox-split to avoid rounding problems
parent
5d3ce948
Pipeline
#1261
passed with stage
in 11 minutes and 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
minos2/widgets.fs
minos2/widgets.fs
+13
-11
No files found.
minos2/widgets.fs
View file @
418a0645
...
...
@@ -907,13 +907,13 @@ end-class box
childs
[]
$@
bounds
U
+
DO
I
@
.
xt
cell
+
LOOP
;
:
do
-
childs
~~
{
xt
:
xt
--
..
}
.
" Childs: "
childs
[]
$@
bounds
U
+
DO
I
@
hex
.
I
@
.
name
$
type
space
cell
+
LOOP
cr
childs
[]
$@
bounds
U
+
DO
I
@
.
xt
cell
+
LOOP
;
\
:
do
-
childs
~~
{
xt
:
xt
--
..
}
\
.
" Childs: "
childs
[]
$@
bounds
U
+
DO
\
I
@
hex
.
I
@
.
name
$
type
space
\
cell
+
LOOP
cr
\
childs
[]
$@
bounds
U
+
DO
\
I
@
.
xt
\
cell
+
LOOP
;
:
do
-
childs
-?
act
{
xt
:
xt
--
..
}
childs
[]
$@
bounds
U
+
DO
I
@
>
o
act
IF
xt
THEN
o
>
...
...
@@ -945,7 +945,7 @@ end-class box
childs
[]
$[]#
IF
0
childs
[]
$[]
@
.
execute
ELSE
drop
THEN
;
:
dispose
-
childs
(
--
)
[
'
]
dispose
-
widget
do
-
childs
~~
childs
[]
$
free
;
[
'
]
dispose
-
widget
do
-
childs
childs
[]
$
free
;
:
b
.
widget
(
--
)
w
.
widget
hglue
-
c
x
.
glue
vglue
-
c
x
.
glue
dglue
-
c
x
.
glue
cr
...
...
@@ -974,7 +974,7 @@ box is resized
:
+
child
(
o
--
)
o
over
>
o
to
parent
-
w
o
>
childs
[]
>
back
;
:
child
+
(
o
--
)
o
over
>
o
to
parent
-
w
o
>
childs
[]
>
stack
;
:
+
childs
(
o1
..
on
n
--
)
[:
~~
;]
[
'
]
do
-
debug
$
10
base
-
execute
:
+
childs
(
o1
..
on
n
--
)
\
[:
~~
;]
[
'
]
do
-
debug
$
10
base
-
execute
n
>
r
childs
[]
get
-
stack
{
x
}
nr
>
x
+
childs
[]
set
-
stack
o
[:
dup
to
parent
-
w
;]
do
-
childs
drop
;
...
...
@@ -1128,9 +1128,11 @@ glue*2 >o 1glue f2* hglue-c glue! 0glue f2* dglue-c glue! 1glue f2* vglue-c glue
:
par
-
init
(
--
)
\
set
paragraph
to
maximum
horizontal
extent
!
size
xywhd
resize
;
1e-10
FConstant
split
-
fudge
:
hbox
-
split
{
firstflag
f
:
start
f
:
rw
--
o
start'
)
childs
[]
$[]#
{
childs
#
}
childs
#
start
fm
*
to
start
start
fdup
floor
f
-
{
f
:
startx
}
childs
[]
$[]#
{
childs
#
}
childs
#
start
fm
*
split
-
fudge
f
+
to
start
start
fdup
floor
f
-
split
-
fudge
f
-
0
e
fmax
{
f
:
startx
}
hbox
new
{
newbox
}
act
?
dup
-
IF
.
clone
newbox
.!
act
THEN
childs
#
start
floor
f
>
s
U
+
DO
...
...
Write
Preview
Markdown
is supported
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