Skip to main content



      Home
Home » Eclipse Projects » Sirius » Strange rendering of scrollbars(The containers scrollbars are not rendered as expected. They are very ugly toolbars)
Strange rendering of scrollbars [message #1448703] Mon, 20 October 2014 06:06 Go to next message
Eclipse UserFriend
When I am inside a container node and it does not fit its contents, strange scrollbars appears. It is not the operating system default scrollbar and looks very ugly Crying or Very Sad . It seems to be some rendering issue. I attached an image showing it.

Does anybody have a solution?
Re: Strange rendering of scrollbars [message #1448793 is a reply to message #1448703] Mon, 20 October 2014 09:01 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

Le 20/10/2014 14:19, Vinicius Souza a écrit :
> When I am inside a container node and it does not fit its contents, strange scrollbars appears. It is not the operating system default scrollbar and looks very ugly :cry: . It seems to be some rendering issue. I attached an image showing it.
>
> Does anybody have a solution?
>

The Sirius editparts which displays those scrollbars inherit from
org.eclipse.gmf.runtime.diagram.ui.figures.ShapeCompartmentFigure which
creates a
org.eclipse.gmf.runtime.draw2d.ui.internal.figures.AnimatableScrollPane
with its org.eclipse.gmf.runtime.draw2d.ui.figures.ListScrollBar.

You could choose to implements some specific scrollbars (or reuse other
kind of scroll bars from draw2d) but you will have to provide your own
editparts and figures to change this behavior.

Regards,

--
Maxime - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Strange rendering of scrollbars [message #1448862 is a reply to message #1448793] Mon, 20 October 2014 10:48 Go to previous messageGo to next message
Eclipse UserFriend
So, is this the default behavior of the Sirius containers? Or is it some problem with the Eclipse 4 rendering?
Re: Strange rendering of scrollbars [message #1448866 is a reply to message #1448862] Mon, 20 October 2014 10:55 Go to previous messageGo to next message
Eclipse UserFriend
Le 20/10/2014 16:48, Vinicius Souza a écrit :
> So, is this the default behavior of the Sirius containers? Or is it some
> problem with the Eclipse 4 rendering?

This is the default behavior of the Sirius containers.
You will have the same rendering on Eclipse 3 or 4, and on Linux, Mac OS
or Windows.

Regards

--
Maxime - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Strange rendering of scrollbars [message #1448883 is a reply to message #1448866] Mon, 20 October 2014 11:22 Go to previous messageGo to next message
Eclipse UserFriend
Ok. So, is there a way to make the element auto-size every time its contents does not fit its size? This way, the scrollbar won't appear. I know the "auto-size" button from the diagram toolbar, but sometimes it stops auto-sizing.
Re: Strange rendering of scrollbars [message #1450184 is a reply to message #1448883] Wed, 22 October 2014 03:17 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

The auto-size is the default behavior at the creation time. A container
keeps its auto-size until it's resized manually.

Regards,


On 10/20/2014 05:22 PM, Vinicius Souza wrote:
> Ok. So, is there a way to make the element auto-size every time its
> contents does not fit its size? This way, the scrollbar won't appear. I
> know the "auto-size" button from the diagram toolbar, but sometimes it
> stops auto-sizing.


--
Florian - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Strange rendering of scrollbars [message #1727749 is a reply to message #1450184] Sat, 26 March 2016 14:00 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I'm having the same problem. Attached is an image showing that when I create a container in another container, it will not get auto sized or auto fit to the parent container.
index.php/fa/25427/0/
Any solution ?

Thanks,
Parsa
Re: Strange rendering of scrollbars [message #1728058 is a reply to message #1727749] Wed, 30 March 2016 12:21 Go to previous message
Eclipse UserFriend
Hi Parsa,

Le 26/03/2016 19:00, Parsa Pourali a écrit :
> Hi,
>
> I'm having the same problem. Attached is an image showing that when I create a container in another container, it will not get auto sized or auto fit to the parent container.
>
> Any solution ?
>
> Thanks,
> Parsa
>

IMO, this is related to your other post on the auto-fit or regions and
the size expression in the VSM.

This thread deals with the GMF/Draw2D scrollbar rendering (in diagram
containers) which is the same on MacOS, Windows and Linux but is
different than the scrollbar displayed in Eclipse views (system dependent).

Regards
--
Maxime - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Deploy the "Ecore Model Project" and "Viewpoint Specification Project"
Next Topic:Problem with listener
Goto Forum:
  


Current Time: Mon Jul 28 09:34:31 EDT 2025

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

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

Back to the top