Skip to content

Commit

Permalink
Added removeEventHandlers back. Fixed Infinite layout anchor info. Ad…
Browse files Browse the repository at this point in the history
…ded factory methods to FlowLayout
  • Loading branch information
syrel committed Mar 9, 2017
1 parent 5dc1b15 commit c3fd607
Show file tree
Hide file tree
Showing 86 changed files with 701 additions and 801 deletions.
5 changes: 3 additions & 2 deletions src/Bloc-Infinite-Layouts.package/.filetree
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"noMethodMetaData" : true,
"separateMethodMetaAndSource" : false,
"useCypressPropertiesFile" : true }
"noMethodMetaData" : true,
"useCypressPropertiesFile" : true
}
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
{
"commentStamp" : "",
"super" : "Object",
"category" : "Bloc-Infinite-Layouts-Flow-Utilities",
"classinstvars" : [
"empty" ],
"classvars" : [
],
"commentStamp" : "",
"empty"
],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [
"itemCount",
"totalWidth",
"maxHeight",
"maxHeightIndex" ],
"maxHeightIndex"
],
"name" : "BlInfiniteFlowLayoutLine",
"pools" : [
],
"super" : "Object",
"type" : "normal" }
"type" : "normal"
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"category" : "Bloc-Infinite-Layouts-Linear",
"classinstvars" : [
],
"classvars" : [
],
"commentStamp" : "",
"super" : "BlInfiniteLayout",
"category" : "Bloc-Infinite-Layouts-Linear",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [
"shouldReverseLayout",
"orientation",
Expand All @@ -14,9 +14,8 @@
"pendingScrollPositionOffset",
"lastStackFromEnd",
"anchorInfo",
"stackFromEnd" ],
"stackFromEnd"
],
"name" : "BlInfiniteLinearLayout",
"pools" : [
],
"super" : "BlInfiniteLayout",
"type" : "normal" }
"type" : "normal"
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ isElementValidAsAnchor: anElement state: anInfiniteState
| anInfiniteConstraints |

anInfiniteConstraints := anElement constraints infinite.
^ anInfiniteConstraints isRemoved not and: [
^ anInfiniteConstraints isItemRemoved not and: [
anInfiniteConstraints elementLayoutPosition
between: 1
and: anInfiniteState itemCount ]
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
{
"category" : "Bloc-Infinite-Layouts-Linear-Utilities",
"classinstvars" : [
],
"classvars" : [
],
"commentStamp" : "",
"super" : "Object",
"category" : "Bloc-Infinite-Layouts-Linear-Utilities",
"classinstvars" : [ ],
"pools" : [
"BlInfiniteConstants"
],
"classvars" : [ ],
"instvars" : [
"position",
"coordinate",
"layoutFromEnd",
"valid" ],
"valid"
],
"name" : "BlInfiniteLinearLayoutAnchorInfo",
"pools" : [
"BlInfiniteConstants" ],
"super" : "Object",
"type" : "normal" }
"type" : "normal"
}
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{
"category" : "Bloc-Infinite-Layouts-Linear-Utilities",
"classinstvars" : [
],
"classvars" : [
],
"commentStamp" : "",
"super" : "Object",
"category" : "Bloc-Infinite-Layouts-Linear-Utilities",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [
"finished",
"ignoreConsumed",
"focusable",
"consumedSpace" ],
"consumedSpace"
],
"name" : "BlInfiniteLinearLayoutChunkResult",
"pools" : [
],
"super" : "Object",
"type" : "normal" }
"type" : "normal"
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"commentStamp" : "",
"super" : "Object",
"category" : "Bloc-Infinite-Layouts-Linear-Utilities",
"classinstvars" : [
"start",
"end" ],
"classvars" : [
],
"commentStamp" : "",
"instvars" : [
],
"end"
],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [ ],
"name" : "BlInfiniteLinearLayoutDirection",
"pools" : [
],
"super" : "Object",
"type" : "normal" }
"type" : "normal"
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
{
"category" : "Bloc-Infinite-Layouts-Linear-Utilities",
"classinstvars" : [
],
"classvars" : [
],
"commentStamp" : "",
"instvars" : [
],
"name" : "BlInfiniteLinearLayoutDirectionEnd",
"pools" : [
],
"super" : "BlInfiniteLinearLayoutDirection",
"type" : "normal" }
"category" : "Bloc-Infinite-Layouts-Linear-Utilities",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [ ],
"name" : "BlInfiniteLinearLayoutDirectionEnd",
"type" : "normal"
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
{
"category" : "Bloc-Infinite-Layouts-Linear-Utilities",
"classinstvars" : [
],
"classvars" : [
],
"commentStamp" : "",
"instvars" : [
],
"name" : "BlInfiniteLinearLayoutDirectionStart",
"pools" : [
],
"super" : "BlInfiniteLinearLayoutDirection",
"type" : "normal" }
"category" : "Bloc-Infinite-Layouts-Linear-Utilities",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [ ],
"name" : "BlInfiniteLinearLayoutDirectionStart",
"type" : "normal"
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"commentStamp" : "",
"super" : "Object",
"category" : "Bloc-Infinite-Layouts-Linear-Utilities",
"classinstvars" : [
"head",
"tail" ],
"classvars" : [
],
"commentStamp" : "",
"instvars" : [
],
"tail"
],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [ ],
"name" : "BlInfiniteLinearLayoutItemDirection",
"pools" : [
],
"super" : "Object",
"type" : "normal" }
"type" : "normal"
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
{
"category" : "Bloc-Infinite-Layouts-Linear-Utilities",
"classinstvars" : [
],
"classvars" : [
],
"commentStamp" : "",
"instvars" : [
],
"name" : "BlInfiniteLinearLayoutItemDirectionHead",
"pools" : [
],
"super" : "BlInfiniteLinearLayoutItemDirection",
"type" : "normal" }
"category" : "Bloc-Infinite-Layouts-Linear-Utilities",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [ ],
"name" : "BlInfiniteLinearLayoutItemDirectionHead",
"type" : "normal"
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
{
"category" : "Bloc-Infinite-Layouts-Linear-Utilities",
"classinstvars" : [
],
"classvars" : [
],
"commentStamp" : "",
"instvars" : [
],
"name" : "BlInfiniteLinearLayoutItemDirectionTail",
"pools" : [
],
"super" : "BlInfiniteLinearLayoutItemDirection",
"type" : "normal" }
"category" : "Bloc-Infinite-Layouts-Linear-Utilities",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [ ],
"name" : "BlInfiniteLinearLayoutItemDirectionTail",
"type" : "normal"
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"category" : "Bloc-Infinite-Layouts-Linear-Utilities",
"classinstvars" : [
],
"classvars" : [
],
"commentStamp" : "",
"super" : "Object",
"category" : "Bloc-Infinite-Layouts-Linear-Utilities",
"classinstvars" : [ ],
"pools" : [
"BlInfiniteConstants"
],
"classvars" : [ ],
"instvars" : [
"allowRecycling",
"availableSpace",
Expand All @@ -17,9 +19,8 @@
"scrollingOffset",
"isInfinite",
"layoutDirection",
"offset" ],
"offset"
],
"name" : "BlInfiniteLinearLayoutState",
"pools" : [
"BlInfiniteConstants" ],
"super" : "Object",
"type" : "normal" }
"type" : "normal"
}
3 changes: 1 addition & 2 deletions src/Bloc-Infinite-Layouts.package/properties.json
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
{
}
{ }
5 changes: 3 additions & 2 deletions src/Bloc-Layout.package/.filetree
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"noMethodMetaData" : true,
"separateMethodMetaAndSource" : false,
"useCypressPropertiesFile" : true }
"noMethodMetaData" : true,
"useCypressPropertiesFile" : true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
factory
horizontal
^ self new
horizontal;
yourself
5 changes: 5 additions & 0 deletions src/Bloc-Layout.package/BlFlowLayout.class/class/vertical.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
factory
vertical
^ self new
vertical;
yourself
19 changes: 9 additions & 10 deletions src/Bloc-Layout.package/BlFlowLayout.class/properties.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{
"category" : "Bloc-Layout-Flow",
"classinstvars" : [
],
"classvars" : [
],
"commentStamp" : "",
"super" : "BlLayout",
"category" : "Bloc-Layout-Flow",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [
"measurer",
"orientation",
"horizontalAlignment",
"verticalAlignment" ],
"verticalAlignment"
],
"name" : "BlFlowLayout",
"pools" : [
],
"super" : "BlLayout",
"type" : "normal" }
"type" : "normal"
}

0 comments on commit c3fd607

Please sign in to comment.