Skip to main content



      Home
Home » Eclipse Projects » GEF » FlowLayout & zoom issues
FlowLayout & zoom issues [message #178172] Mon, 18 April 2005 19:02 Go to next message
Eclipse UserFriend
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



  • Attachment: 2.gif
    (Size: 6.78KB, Downloaded 128 times)
  • Attachment: 1.gif
    (Size: 8.62KB, Downloaded 119 times)
More: FlowLayout & zoom issues [message #178184 is a reply to message #178172] Mon, 18 April 2005 19:18 Go to previous messageGo to next message
Eclipse UserFriend
Yes, just noticed: vertical arrangement does not happen at
100%,200%,300%,400% zoom. Other factors do work.

/Leo
More: FlowLayout & zoom issues [message #178192 is a reply to message #178172] Mon, 18 April 2005 19:18 Go to previous messageGo to next message
Eclipse UserFriend
Yes, just noticed: vertical arrangement does not happen at
100%,200%,300%,400% zoom. Other factors do work.

/Leo
Re: FlowLayout & zoom issues [message #178213 is a reply to message #178172] Mon, 18 April 2005 23:42 Go to previous messageGo to next message
Eclipse UserFriend
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 #178230 is a reply to message #178213] Tue, 19 April 2005 05:32 Go to previous messageGo to next message
Eclipse UserFriend
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.

/Leo

"Randy Hudson" <none@us.ibm.com> wrote in message
news:d41v61$j12$1@news.eclipse.org...
> 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 10:06 Go to previous messageGo to next message
Eclipse UserFriend
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?
Re: FlowLayout & zoom issues [message #180476 is a reply to message #178271] Thu, 05 May 2005 20:29 Go to previous message
Eclipse UserFriend
I've created a bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=93864 .
/Leo

"Randy Hudson" <none@us.ibm.com> wrote in message
news:d433nd$7a1$1@news.eclipse.org...
> "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?
>
Previous Topic:how to refresh property sheet view ?
Next Topic:Saving as jpeg!!!
Goto Forum:
  


Current Time: Tue Jul 08 14:03:37 EDT 2025

Powered by FUDForum. Page generated in 0.05669 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top