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 swapping not working if parent layout uses symbols #21

Open
pavel-krivanek opened this issue Sep 7, 2022 · 0 comments
Open

Layout swapping not working if parent layout uses symbols #21

pavel-krivanek opened this issue Sep 7, 2022 · 0 comments

Comments

@pavel-krivanek
Copy link
Contributor

Let's have a presenter with one button that, after clicking, swaps its layout ho contain two other buttons, And let's have a parent presenter containing two of such presenters.

image

so after clicking on the bottom one, the layout looks like this

image

Parent's layout is:

	^ SpBoxLayout newVertical
		add: #p1;
		add: #p2;
		yourself

Child layout is:

defaultLayout 

	| aLayout |
	
	aLayout := SpBoxLayout newHorizontal.

	collapsed 
		ifFalse: [ 
			aLayout add: #button1;
					  add: #button2]
		ifTrue: [ 
			aLayout add: #expandButton ].
		
	^ aLayout

When doing the same in Gtk, it fails with Instance of ByteSymbol did not understand #owner:

image

The swapping of a single child in a standalone window works well.

Code to reproduce

Install this: LayoutIssue.zip

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

No branches or pull requests

1 participant