[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.gef] Re: Layout in Circuit Figure
|
I think the circuit uses a FreeFormViewport, which has a modified layout and
expects a freeformFigure as the contents. Change it to just use a normal
viewport.
"oro" <oro7d3@xxxxxxxxxxxx> wrote in message
news:b1k9cn$tbg$1@xxxxxxxxxxxxxxxx
> I am trying to change the layout of the Circuit Figure so that the figures
> withing the circuit are arranged in row-by-row (1 row, 1 figure hort) and
if
> the Circuit Figure size does not fit all its children, scroll bar will
> appear. So I switch the layout from StackLayout to FlowLayout. But what I
> find out it Scroll bar does not appear when the parent (the circuit) is
not
> big enough. Could you please if I miss something?
>
> ScrollPane scrollpane = new ScrollPane();
>
> pane = new FreeformLayer();
>
> pane.setLayoutManager(new FreeformLayout());
>
> FlowLayout fl = new FlowLayout();
>
> fl.setMajorAlignment(FlowLayout.ALIGN_LEFTTOP);
>
> // before
>
> //setLayoutManager(new StackLayout());
>
> // after
>
> setLayoutManager(fl);
>
> add(scrollpane);
>
>