Ben, I think I fixed the problem. http://code.google.com/p/moose-technology/issues/detail?id=830
However, your example will not work. The reason is that in your block provided to #text: you use #bounds. And you should not since #bounds use #text to compute its bounds. It simply loops.
Try with the following example: -=-=-=-=-=-=-=-=-=-=-=-=-=-=-= | view el | view := ROView new.
el := ROElement new + ROBorder red. el @ RODraggable. el + (ROLabel text: [ :v | v position asString ]).
view add: el.
view open -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Let me know how it goes.
I will look at the Circle problem soon.
Cheers, Alexandre
On Sep 4, 2012, at 12:41 PM, moose-technology@googlecode.com wrote:
Comment #3 on issue 830 by google....@ben.coman.com.au: ROLabel dynamic text not updating bounds/ROBorder properly http://code.google.com/p/moose-technology/issues/detail?id=830
Thanks Alex. But hold your breath and get a load of the next one. Could be a curly one :) That might require some deep changes - but I think it is somewhat critical, at least for what I was trying to achieve with ROCircleLayout, which is to have elements to pin different corners of themselves to the circle depending on which quadrant they are in.
cheers -ben
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev