Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layout of collapsed collapsible #38

Open
codeZeilen opened this issue May 3, 2018 · 1 comment
Open

Layout of collapsed collapsible #38

codeZeilen opened this issue May 3, 2018 · 1 comment

Comments

@codeZeilen
Copy link
Collaborator

The following example:

initialize

	| fieldRows |
	super initialize.
	
	self
		withLayout;
		vertical: true;
		extent: self initialExtent.
	
	fieldRows := (1 to: 10) collect: [:i | {
		PHLabel text: i asString. 
		(PHPage column) 
			add: (PHBadge text: i asString); 
			add: (PHCollapsible new collapsed: true; add: (PHLabel text: (10 - i) asString); yourself);
			yourself} ].
	
	self add: (PHDescriptionList items: fieldRows).

Is rendered as following:

collapsiblelayout

The spacing between the list items is a result of the PHPage having empty space below the Badge. Without the collapsible below the badge the extra space is not added.

@codeZeilen
Copy link
Collaborator Author

Oddly enough I manged to reproduce this now without a collapsible so probably just a styling property I am missing :)

Maybe another insight coming out of this: Figuring out which visual effects result from which styling property is sometimes a little hard. However, any solution to that would probably involve a major tool building effort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant