|
|
|
Re: FlowLayout & zoom issues [message #178213 is a reply to message #178172] |
Tue, 19 April 2005 03:42 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
This is sort of an inconsistency. I think that hints are not used when the
scrollbar calculation is made, but then hints are used later.
You should be using viewport.setContentsTracksWidth(true), since that is how
flowlayout works.
"Leonid Mokrushin" <leom@it.uu.se> wrote in message
news:d41epa$175$1@news.eclipse.org...
> When using a figure with FlowLayout and FlowLayoutEditPolicy I see
> different "layouting" behaviors depending on the currently selected zoom
> factor. The content of my editor is set as:
>
> Figure f = new Figure();
> f.setBorder(new MarginBorder(5));
> f.setLayoutManager(new FlowLayout());
>
> Take a look at the attached pictures. I'm changing the size of the editor
> window and never get vertical arrangement of my boxes at 100% zoom.
> Everything works perfect on 75% and 150% and others. There is also
> something fishy about the scrollbar (see the second picture at 75% zoom) -
> it still thinks that boxes are arranged horizontally.
>
> I haven't found any material on the matter.
> Where to dig?
>
> /Leo
>
>
|
|
|
|
Re: FlowLayout & zoom issues [message #178271 is a reply to message #178230] |
Tue, 19 April 2005 14:06 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
"Leonid Mokrushin" <leom@it.uu.se> wrote in message
news:d42jm5$doj$1@news.eclipse.org...
> Thanx, Randy!
>
> viewport.setContentsTracksWidth(true) solved my problem completely for
> 100% zoom.
> And now one can see clearly what does not work: the calculation of the
> scrollbars does not take zoom factor into account at all.
I'm not sure that's the exact problem, but could you open a bugzilla with
details of the figure structure needed to reproduce?
|
|
|
|
Powered by
FUDForum. Page generated in 0.03433 seconds