Hi,

I found two problems:
- RTNest new on:nest: calls "self makeElements: elements transformable: backElement" and this is why the scaling happens. Removing this line does no longer do the stretching.
- However, the main problem is that when nesting, the parent element does not change its size. This is a bug in my opinion.

Cheers,
Doru



On Thu, Oct 2, 2014 at 7:38 AM, Tudor Girba <tudor@tudorgirba.com> wrote:
Hi,

I gave it a shot at reimplementing the class blueprint on top of Roassal 2. It almost works. The implementation is still found in FAMIXType and it relies directly on RTView. I did not create a builder for it.

However, we still have one problem: aligning the size of the layers does not work yet. Take a look at the attached screenshots (the first is without resize and the second one is with).
It looks like 
     TRConstraint setAllToMaxHeight:
has a problem when dealing with nested nodes.

There were other cumbersome things that I stumbled across in the process, but I could go around them (I will follow with other emails on those issues later). I think it starts to be pretty cool :)

Alex, could you take a look?



Inline image 1

Inline image 2



On Wed, Oct 1, 2014 at 2:26 PM, Alexandre Bergel <alexandre.bergel@me.com> wrote:
Ok, let me know 

Alexandre

Le 30-09-2014 à 22:12, Tudor Girba <tudor@tudorgirba.com> a écrit :

It looks quite promising. I will try to look into it. Let's synchronize over the mailing list.

Cheers,
Doru

On Wed, Oct 1, 2014 at 12:18 AM, Alexandre Bergel <alexandre.bergel@me.com> wrote:
Hi!

Sorry for being late. Yesterday has been a busy day.
I have worked on:
TRConstraint>> setAllToMaxHeight:
TRConstraint>> setAllToMaxWidth:
TRConstraint>> use:alignFromBottom: 
TRConstraint>> use:alignFromTop: 

Here is an example, and its screenshot:
<Screen Shot 2014-09-30 at 3.04.36 PM.png>

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
v := RTView new.
v @ RTDraggableView.
shape := RTBox new 
color: Color transparent;
borderColor: Color black;
size: #numberOfMethods.
es := shape elementsOn: (RTShape withAllSubclasses copyWithout: RTSVGPath).
es @ RTDraggable.


RTHorizontalLineLayout new gapSize:0; on: es.
v addAll: es.

v addMenu: 'reset' callback: [ 
es updateShape.
v signalUpdate ].


v addMenu: 'max' callback: [ 
TRConstraint setAllToMaxHeight: es.
v signalUpdate ].

v addMenu: 'up' callback: [ 
TRConstraint use: es first alignFromTop: es.
v signalUpdate ].

v addMenu: 'down' callback: [ 
TRConstraint use: es first alignFromBottom: es.
v signalUpdate ].

v.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Does this help?

Cheers,
Alexandre


On Sep 29, 2014, at 6:33 AM, Yuriy Tymchuk <yuriy.tymchuk@me.com> wrote:

Then you start and I’ll help if you make it available somewhere. I’m a bit busy with university stuff…

Uko

On 29 Sep 2014, at 15:18, Alexandre Bergel <alexandre.bergel@me.com> wrote:

Hi!

This is something I wanted to do for long. This is a simple method to add in TRConstraint I believe. 
Uko, are you working on this? I can find a few minutes today for this

Alexandre

Le 28-09-2014 à 22:10, Tudor Girba <tudor@tudorgirba.com> a écrit :

Hi,

I would need help for reimplementing the Class Blueprint. The challenge here is to get the ability to set the height of the boxes to be based on the maximum height of any of the sybling boxes.

Who can help?

Cheers,
Doru



-- 
www.tudorgirba.com

"Every thing has its own flow"
_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev

_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev




--

"Every thing has its own flow"
_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev

_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev




--

"Every thing has its own flow"



--
www.tudorgirba.com

"Every thing has its own flow"