-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #123 from SWTI2014/rendering/html-table
- Loading branch information
Showing
93 changed files
with
533 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
packages/HTML.package/HtmlTABLENode.class/instance/addDefaultStyle.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
initialize-release | ||
addDefaultStyle | ||
| styles | | ||
styles := Dictionary newFrom: { | ||
'display' -> 'table'. | ||
}. | ||
self addStyle: (CSSStyleRule fromDictionary: styles) |
4 changes: 4 additions & 0 deletions
4
packages/HTML.package/HtmlTABLENode.class/instance/addToHtmlMorph..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
rendering | ||
addToHtmlMorph: aHtmlBlockMorph | ||
super addToHtmlMorph: aHtmlBlockMorph. | ||
((self attributes at: #border ifAbsent: ['0']) = '0') ifFalse: [htmlMorph addTableLines]. |
3 changes: 3 additions & 0 deletions
3
packages/HTML.package/HtmlTABLENode.class/instance/defaultBlockMorph.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
initialize-release | ||
defaultBlockMorph | ||
^ HtmlTableMorph |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
4 changes: 4 additions & 0 deletions
4
.../HTML.package/HtmlTABLENodeTest.class/instance/test01TableShouldRenderAsHtmlTableMorph.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
testing | ||
test01TableShouldRenderAsHtmlTableMorph | ||
|
||
self assert: HtmlTABLENode new getHtmlBlockMorph class equals: HtmlTableMorph |
13 changes: 13 additions & 0 deletions
13
...e/HtmlTABLENodeTest.class/instance/test02TableElementsInColumnShouldHaveSameXPositions.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
testing | ||
test02TableElementsInColumnShouldHaveSameXPositions | ||
| document table | | ||
document := HtmlDocument new. | ||
document parseContents: | ||
(ReadStream on: '<table> | ||
<tr><td>First</td><td>Second item</td></tr> | ||
<tr><td>Third item</td><td>Fourth</td></tr> | ||
</table>'). | ||
table := document children first getHtmlBlockMorph. | ||
table layoutInBounds: table bounds. | ||
self assert: table children first bounds origin x equals: table children third bounds origin x. | ||
self assert: table children second bounds origin x equals: table children fourth bounds origin x. |
13 changes: 13 additions & 0 deletions
13
...age/HtmlTABLENodeTest.class/instance/test03TableElementsInRowsShouldHaveSameYPositions.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
testing | ||
test03TableElementsInRowsShouldHaveSameYPositions | ||
| document table | | ||
document := HtmlDocument new. | ||
document parseContents: | ||
(ReadStream on: '<table> | ||
<tr><td>First</td><td>Second item</td></tr> | ||
<tr><td>Third item</td><td>Fourth</td></tr> | ||
</table>'). | ||
table := document children first getHtmlBlockMorph. | ||
table layoutInBounds: table bounds. | ||
self assert: table children first bounds origin y equals: table children second bounds origin y. | ||
self assert: table children third bounds origin y equals: table children fourth bounds origin y. |
12 changes: 12 additions & 0 deletions
12
....package/HtmlTABLENodeTest.class/instance/test04TableWithUnknownTagShouldntRaiseErrors.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
testing | ||
test04TableWithUnknownTagShouldntRaiseErrors | ||
| document | | ||
document := HtmlDocument new. | ||
document parseContents: | ||
(ReadStream on: '<table border="1"> | ||
<caption>a caption for a table</caption> | ||
<tr> | ||
<td><i>italic text in a td cell</i></td> | ||
</tr> | ||
</table>'). | ||
self shouldnt: [document children first getHtmlBlockMorph] raise: Error. |
8 changes: 8 additions & 0 deletions
8
packages/HTML.package/HtmlTABLENodeTest.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"test01TableShouldRenderAsHtmlTableMorph" : "pf 6/26/2014 18:43", | ||
"test02TableElementsInColumnShouldHaveSameXPositions" : "pf 6/27/2014 00:01", | ||
"test03TableElementsInRowsShouldHaveSameYPositions" : "pf 6/27/2014 00:01", | ||
"test04TableWithUnknownTagShouldntRaiseErrors" : "pf 6/28/2014 09:14" } } |
14 changes: 14 additions & 0 deletions
14
packages/HTML.package/HtmlTABLENodeTest.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"category" : "HTML-Tests", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "", | ||
"instvars" : [ | ||
], | ||
"name" : "HtmlTABLENodeTest", | ||
"pools" : [ | ||
], | ||
"super" : "TestCase", | ||
"type" : "normal" } |
7 changes: 7 additions & 0 deletions
7
packages/HTML.package/HtmlTBODYNode.class/instance/addDefaultStyle.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
initialize-release | ||
addDefaultStyle | ||
| styles | | ||
styles := Dictionary newFrom: { | ||
'display' -> 'block'. | ||
}. | ||
self addStyle: (CSSStyleRule fromDictionary: styles) |
5 changes: 5 additions & 0 deletions
5
packages/HTML.package/HtmlTBODYNode.class/instance/addToHtmlMorph..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
rendering | ||
addToHtmlMorph: aHtmlTableMorph | ||
self children do: [ :ea | | ||
ea addToHtmlMorph: aHtmlTableMorph. | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
packages/HTML.package/HtmlTDNode.class/instance/addDefaultStyle.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
initialize-release | ||
addDefaultStyle | ||
| styles | | ||
styles := Dictionary newFrom: { | ||
'display' -> 'table-cell'. | ||
}. | ||
self addStyle: (CSSStyleRule fromDictionary: styles) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
packages/HTML.package/HtmlTFOOTNode.class/instance/addDefaultStyle.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
initialize-release | ||
addDefaultStyle | ||
| styles | | ||
styles := Dictionary newFrom: { | ||
'display' -> 'block'. | ||
'font-style' -> 'italic'. | ||
}. | ||
self addStyle: (CSSStyleRule fromDictionary: styles) |
5 changes: 5 additions & 0 deletions
5
packages/HTML.package/HtmlTFOOTNode.class/instance/addToHtmlMorph..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
rendering | ||
addToHtmlMorph: aHtmlTableMorph | ||
self children do: [ :ea | | ||
ea addToHtmlMorph: aHtmlTableMorph. | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
packages/HTML.package/HtmlTHEADNode.class/instance/addDefaultStyle.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
initialize-release | ||
addDefaultStyle | ||
| styles | | ||
styles := Dictionary newFrom: { | ||
'display' -> 'block'. | ||
'font-weight' -> 'bold'. | ||
}. | ||
self addStyle: (CSSStyleRule fromDictionary: styles) |
5 changes: 5 additions & 0 deletions
5
packages/HTML.package/HtmlTHEADNode.class/instance/addToHtmlMorph..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
rendering | ||
addToHtmlMorph: aHtmlTableMorph | ||
self children do: [ :ea | | ||
ea addToHtmlMorph: aHtmlTableMorph. | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
packages/HTML.package/HtmlTHNode.class/instance/addDefaultStyle.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
initialize-release | ||
addDefaultStyle | ||
| styles | | ||
styles := Dictionary newFrom: { | ||
'display' -> 'table-cell'. | ||
'font-weight' -> 'bold'. | ||
}. | ||
self addStyle: (CSSStyleRule fromDictionary: styles) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ | |
"class" : { | ||
}, | ||
"instance" : { | ||
"addDefaultStyle" : "rs 6/28/2014 10:20:11.145", | ||
"tag" : "" } } |
7 changes: 7 additions & 0 deletions
7
packages/HTML.package/HtmlTRNode.class/instance/addDefaultStyle.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
initialize-release | ||
addDefaultStyle | ||
| styles | | ||
styles := Dictionary newFrom: { | ||
'display' -> 'table-row'. | ||
}. | ||
self addStyle: (CSSStyleRule fromDictionary: styles) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
6cfa7f32-744a-da4e-839d-2d444502bc40 | ||
f9b06da3-193a-e946-90c1-5251ff072530 |
1 change: 1 addition & 0 deletions
1
...s/HTML.package/monticello.meta/version.d/HTML-pf.100_366dc269-acf3-e240-85c3-c75932a5df5e
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...s/HTML.package/monticello.meta/version.d/HTML-pf.101_6058e555-c451-5242-9be7-b26f6b0a21bd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...s/HTML.package/monticello.meta/version.d/HTML-pf.102_8bd8ce75-a8a4-454f-a719-1072328b78c1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...s/HTML.package/monticello.meta/version.d/HTML-pf.103_d685b735-6679-1848-bac7-bfd62c25f265
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...es/HTML.package/monticello.meta/version.d/HTML-pf.99_a05f980e-75af-654f-bf17-3170ad1ff959
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...s/HTML.package/monticello.meta/version.d/HTML-rs.104_f9b06da3-193a-e946-90c1-5251ff072530
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
5 changes: 5 additions & 0 deletions
5
packages/Scamper.package/HtmlGridLayout.class/instance/columns..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
accessing | ||
columns: anObject | ||
|
||
columns := anObject | ||
self recomputeRatios: columns. |
4 changes: 4 additions & 0 deletions
4
packages/Scamper.package/HtmlGridLayout.class/instance/columns.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
columns | ||
|
||
^ columns |
15 changes: 15 additions & 0 deletions
15
packages/Scamper.package/HtmlGridLayout.class/instance/computeSpacePositions.in..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
layout | ||
computeSpacePositions: aSpaceCollection in: newBreadth | ||
|
||
| pos | | ||
|
||
"Compute the new positions" | ||
pos := 0. | ||
aSpaceCollection do: [ :ea | | b | | ||
b := (newBreadth * (ea ratio)) asInteger. | ||
b < ea min ifTrue: [ b := ea min ]. | ||
b > ea max ifTrue: [ b := ea max ]. | ||
ea position: pos ; breadth: b. | ||
pos := pos + b. | ||
]. | ||
^ pos |
5 changes: 5 additions & 0 deletions
5
packages/Scamper.package/HtmlGridLayout.class/instance/initialize.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
initialize-release | ||
initialize | ||
super initialize. | ||
columns := OrderedCollection new. | ||
rows := OrderedCollection new. |
26 changes: 26 additions & 0 deletions
26
packages/Scamper.package/HtmlGridLayout.class/instance/layout.in..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
layout | ||
layout: aMorph in: newBounds | ||
"Compute the layout for the given morph based on the new bounds" | ||
| origin x y w h | | ||
aMorph hasSubmorphs ifFalse: [^self]. | ||
self | ||
recomputeRatios: columns; | ||
recomputeRatios: rows. | ||
origin := newBounds origin asIntegerPoint. | ||
|
||
self layoutSpace: columns in: newBounds width. | ||
self layoutSpace: rows in: newBounds height. | ||
|
||
aMorph submorphs do: [ :morph | | gridPosition | | ||
gridPosition := morph valueOfProperty: #gridPosition. | ||
gridPosition notNil ifTrue: [ | column morphBounds row | | ||
column := columns at: gridPosition column. | ||
row := rows at: gridPosition row. | ||
x := column position. | ||
y := row position. | ||
w := column breadth. | ||
h := row breadth. | ||
morphBounds := (origin + (x@y)) corner: (origin + (x@y) + (w@h)). | ||
morph layoutInBounds: morphBounds. | ||
] | ||
]. |
25 changes: 25 additions & 0 deletions
25
packages/Scamper.package/HtmlGridLayout.class/instance/layoutSpace.in..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
layout | ||
layoutSpace: aSpaceCollection in: newBreadth | ||
|pos| | ||
|
||
pos := self computeSpacePositions: aSpaceCollection in: newBreadth. | ||
|
||
"If still space left, iterate until done or no more resizable columns" | ||
pos < newBreadth ifTrue: [ | n | | ||
[ n := (aSpaceCollection select: [ :ea | ea breadth < ea max ]) size. | ||
(pos < newBreadth) and: [n > 0]] whileTrue: [ | bsup | | ||
bsup := ((newBreadth - pos ) / n) asInteger. | ||
bsup <= 0 ifTrue: [ bsup := 1 ]. | ||
pos := 0. | ||
aSpaceCollection do: [ :ea | | b | | ||
b := ea breadth. | ||
((pos + b < newBreadth) and: [ b < ea max ]) ifTrue: [ | ||
b := b + bsup. | ||
b > ea max ifTrue: [ b := ea max ]. | ||
]. | ||
ea position: pos; breadth: b. | ||
pos := pos + b. | ||
]. | ||
]. | ||
]. | ||
|
12 changes: 12 additions & 0 deletions
12
packages/Scamper.package/HtmlGridLayout.class/instance/recomputeRatios..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
layout | ||
recomputeRatios: aGridSpaceCollection | ||
"Recompute ratios based on initial breadth" | ||
| pos totalBreadth | | ||
totalBreadth := self totalBreadth: aGridSpaceCollection. | ||
pos := 0. | ||
aGridSpaceCollection do: [ :ea | | ||
ea start: (pos = 0 ifTrue: [ 0 ] ifFalse: [ 1 / (totalBreadth / pos) ]). | ||
ea ratio: (1 / (totalBreadth / ea breadth)). | ||
pos := pos + ea breadth. | ||
]. | ||
^ pos |
5 changes: 5 additions & 0 deletions
5
packages/Scamper.package/HtmlGridLayout.class/instance/rows..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
accessing | ||
rows: anObject | ||
|
||
rows := anObject. | ||
self recomputeRatios: rows. |
4 changes: 4 additions & 0 deletions
4
packages/Scamper.package/HtmlGridLayout.class/instance/rows.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
rows | ||
|
||
^ rows |
3 changes: 3 additions & 0 deletions
3
packages/Scamper.package/HtmlGridLayout.class/instance/totalBreadth..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
totalBreadth: aGridSpaceCollection | ||
^ (aGridSpaceCollection collect: [:ea | ea breadth]) sum |
14 changes: 14 additions & 0 deletions
14
packages/Scamper.package/HtmlGridLayout.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"columns" : "pf 6/21/2014 10:25", | ||
"columns:" : "pf 6/21/2014 10:39", | ||
"computeSpacePositions:in:" : "pf 6/21/2014 12:14", | ||
"initialize" : "pf 6/21/2014 10:26", | ||
"layout:in:" : "pf 6/27/2014 00:09", | ||
"layoutSpace:in:" : "pf 6/21/2014 12:15", | ||
"recomputeRatios:" : "pf 6/21/2014 12:14", | ||
"rows" : "pf 6/21/2014 10:25", | ||
"rows:" : "pf 6/21/2014 10:40", | ||
"totalBreadth:" : "pf 6/21/2014 10:37" } } |
Oops, something went wrong.