Issue 3594 in pharo: Expander needs tweaking to enable resize in a TableLayout

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 3594 in pharo: Expander needs tweaking to enable resize in a TableLayout

pharo
Status: Accepted
Owner: [hidden email]
Labels: Milestone-1.2 Type-RequestForEnhancement

New issue 3594 by [hidden email]: Expander needs tweaking to enable  
resize in a TableLayout
http://code.google.com/p/pharo/issues/detail?id=3594

The attached change set from Gary makes the following code to work:


| container morph1 morph2 morph3 ex1 ex2 ex3 sp1 sp2|
morph1 := (PanelMorph new fillStyle: (SolidFillStyle color: Color red))
        hResizing: #spaceFill;
        vResizing: #spaceFill.
morph2 := (PanelMorph new fillStyle: (SolidFillStyle color: Color blue))
        hResizing: #spaceFill;
        vResizing: #spaceFill.
morph3 := (PanelMorph new fillStyle: (SolidFillStyle color: Color yellow))
        hResizing: #spaceFill;
        vResizing: #spaceFill.
ex1 := (UITheme builder newExpander: 'Red' for: morph1)
        spaceFillWeight: 1;
        expanded: true.
ex2 := (UITheme builder newExpander: 'Blue'  for: morph2)
        spaceFillWeight: 2;
        expanded: true.
ex3 := (UITheme builder newExpander: 'Yellow'  for: morph3)
        spaceFillWeight: 2;
        expanded: true.
sp1 := EdgeGripMorph new
        target: ex1;
        edgeName: #bottom;
        vResizing: #rigid;
        extent: 24 @ ProportionalSplitterMorph splitterWidth;
        on: #mouseDown send: #expandedSizingRigid to: ex1.
sp2 := EdgeGripMorph new
        target: ex2;
        edgeName: #bottom;
        vResizing: #rigid;
        extent: 24 @ ProportionalSplitterMorph splitterWidth;
        on: #mouseDown send: #expandedSizingRigid to: ex2.
container := UITheme builder newColumn: { ex1. sp1. ex2. sp2. ex3}.
container cellInset: 0.
container extent: 400@400.
container openInWindow.


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3594 in pharo: Expander needs tweaking to enable resize in a TableLayout

pharo

Comment #1 on issue 3594 by [hidden email]: Expander needs tweaking  
to enable resize in a TableLayout
http://code.google.com/p/pharo/issues/detail?id=3594

And now with the attachment

Attachments:
        ExpanderTweak.1.cs  757 bytes


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3594 in pharo: Expander needs tweaking to enable resize in a TableLayout

pharo
Updates:
        Labels: Milestone-1.3

Comment #2 on issue 3594 by [hidden email]: Expander needs tweaking  
to enable resize in a TableLayout
http://code.google.com/p/pharo/issues/detail?id=3594

(No comment was entered for this change.)


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3594 in pharo: Expander needs tweaking to enable resize in a TableLayout

pharo
Updates:
        Status: Fixed

Comment #3 on issue 3594 by [hidden email]: Expander needs tweaking  
to enable resize in a TableLayout
http://code.google.com/p/pharo/issues/detail?id=3594

12332

TODO: 1.3


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3594 in pharo: Expander needs tweaking to enable resize in a TableLayout

pharo
Updates:
        Status: Closed

Comment #4 on issue 3594 by [hidden email]: Expander needs tweaking  
to enable resize in a TableLayout
http://code.google.com/p/pharo/issues/detail?id=3594

(No comment was entered for this change.)


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3594 in pharo: Expander needs tweaking to enable resize in a TableLayout

pharo

Comment #5 on issue 3594 by [hidden email]: Expander needs tweaking  
to enable resize in a TableLayout
http://code.google.com/p/pharo/issues/detail?id=3594

13019


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3594 in pharo: Expander needs tweaking to enable resize in a TableLayout

pharo
Updates:
        Status: Started

Comment #6 on issue 3594 by [hidden email]: Expander needs tweaking  
to enable resize in a TableLayout
http://code.google.com/p/pharo/issues/detail?id=3594

I attach here a second changeset from Gary that deals with a special case  
of resizing. It also introduces Announcements for ExpanderMorph. I think we  
should integrate these as well.

Attachments:
        ExpanderTweak.2.cs  7.0 KB


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3594 in pharo: Expander needs tweaking to enable resize in a TableLayout

pharo

Comment #7 on issue 3594 by [hidden email]: Expander needs tweaking  
to enable resize in a TableLayout
http://code.google.com/p/pharo/issues/detail?id=3594

in 13020

    TODO: 1.2


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3594 in pharo: Expander needs tweaking to enable resize in a TableLayout

pharo
Updates:
        Status: Closed

Comment #8 on issue 3594 by [hidden email]: Expander needs tweaking  
to enable resize in a TableLayout
http://code.google.com/p/pharo/issues/detail?id=3594

in 12323