Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » FlowLayout & zoom issues
FlowLayout & zoom issues [message #178172] Mon, 18 April 2005 23:02 Go to next message
Leonid Mokrushin is currently offline Leonid MokrushinFriend
Messages: 25
Registered: July 2009
Junior Member
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 96 times)
  • Attachment: 1.gif
    (Size: 8.62KB, Downloaded 98 times)
More: FlowLayout & zoom issues [message #178184 is a reply to message #178172] Mon, 18 April 2005 23:18 Go to previous messageGo to next message
Leonid Mokrushin is currently offline Leonid MokrushinFriend
Messages: 25
Registered: July 2009
Junior Member
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 23:18 Go to previous messageGo to next message
Leonid Mokrushin is currently offline Leonid MokrushinFriend
Messages: 25
Registered: July 2009
Junior Member
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] Tue, 19 April 2005 03: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 09:32 Go to previous messageGo to next message
Leonid Mokrushin is currently offline Leonid MokrushinFriend
Messages: 25
Registered: July 2009
Junior Member
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 14: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] Fri, 06 May 2005 00:29 Go to previous message
Leonid Mokrushin is currently offline Leonid MokrushinFriend
Messages: 25
Registered: July 2009
Junior Member
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: Sun Feb 05 15:42:24 GMT 2023

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

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

Back to the top